User`s manual
143
Chapter 7 Application Programs
BASIC Example Program
4
7
BASIC Example Program
Sample programs in this section are written in BASIC 6.0 and have been
tested on a UNIX workstation.
Requirements:
•
GPIB interface selected and set to the address of 09 from the front-
panel;
•
Any one of the relay modules installed in Slot 1 of the mainframe;
•
A GPIB interface card installed in your UNIX workstation.
10 ! EXAMPLE.BAS: TEST 3499A/B/C IN 3488A MODE
20 DIM Retstr$[128]! String returned from the instrument.
30 OUTPUT 709; "SYSMODE HP3488A"! Set 3499A/B/C to 3488A mode
40 WAIT 4! Wait 4 seconds.
50 OUTPUT 709; "RESET" ! Reset 3499A/B/C.
60 WAIT 4
70 ! Close channels 100 through 103.
80 OUTPUT 709; "CLOSE 100, 101, 102, 103"
90 ! Open channels 100 through 103.
100 OUTPUT 709; "OPEN 100, 101, 102, 103"
110 ! A SIMPLE SCAN.
120 OUTPUT 709; "SLIST 100-103"! Create a scan list.
130 FOR I=0 TO 8! Step through the channels two times.
140 OUTPUT 709; "STEP"
150 WAIT .025
160 NEXT I
170 Done: END