The newest boxes from Keysight (formerly Agilent formerly HP) that run Windows use C# for macros. But you really don't need to use it if you have the box networked and send SCPI commands to it.
Rocky Mountain Basic
21–24 of 24 posts
Re: Rocky Mountain Basic
#22Re: Rocky Mountain Basic
#23Earlier quoted context omitted.
One of my first program was something like: - What is your name? - is dumb, haha
Me too. One time I messed with my friend by adding a conditional to complement every name except his. 10 PRINT "WHAT IS YOUR NAME"; 20 INPUT NAME$ 30 IF NAME$ = "BILL" THEN 40 PRINT NAME$+" SOUNDS LIKE A NAME FOR A DORK!" 50 ELSE 60 PRINT NAME$+" SOUNDS LIKE A GREAT NAME!" 70 END IF I also tried to prank people with a program I wrote that mimicked a BSOD, but I couldn't get anyone to fall for it. PS- No hard feelings…
10 PRINT "WHAT IS YOUR NAME";
20 INPUT NAME$
30 IF NAME$ = "BILL" THEN
40 PRINT NAME$+" SOUNDS LIKE A NAME FOR A DORK!"
50 ELSE
60 PRINT NAME$+" SOUNDS LIKE A GREAT NAME!"
70 END IFRe: Rocky Mountain Basic
#24Earlier quoted context omitted.
Me too. One time I messed with my friend by adding a conditional to complement every name except his. 10 PRINT "WHAT IS YOUR NAME"; 20 INPUT NAME$ 30 IF NAME$ = "BILL" THEN 40 PRINT NAME$+" SOUNDS LIKE A NAME FOR A DORK!" 50 ELSE 60 PRINT NAME$+" SOUNDS LIKE A GREAT NAME!" 70 END IF I also tried to prank people with a program I wrote that mimicked a BSOD, but I couldn't get anyone to fall for it. PS- No hard feelings…
Formatted version (HN supports code sections by indenting 4 spaces): 10 PRINT "WHAT IS YOUR NAME"; 20 INPUT NAME$ 30 IF NAME$ = "BILL" THEN 40 PRINT NAME$+" SOUNDS LIKE A NAME FOR A DORK!" 50 ELSE 60 PRINT NAME$+" SOUNDS LIKE A GREAT NAME!" 70 END IF