The following example program sets up the Model 2010 using a scan list to measure
DC voltage on channels 1, 2 and 3. The meter takes ten sets of readings, with each set spaced
15 seconds apart, and each of the three readings in each group taken as fast as possible. The
Model 2010 stores the readings in the buffer and asserts SRQ when the buffer is full. The
program waits for the SRQ, and then reads the readings from the buffer.
'Example program to demonstrate using the scan list
'For QuickBASIC 4.5 and CEC PC488 interface card
'Edit the following line to where the QuickBASIC
'libraries are on your computer
'$INCLUDE: 'c:\qb45\ieeeqb.bi'
'Initialize the CEC interface as address 21
CALL initialize(21, 0)
'Reset controls and put trigger model in IDLE state, set function to DCV
CALL SEND(16, "*rst", status%)
'Reset STATus subsystem (not affected by *RST)
CALL SEND(16, "stat:pres;*cls", status%)
CALL SEND(16, "stat:meas:enab 512", status%) 'enable BFL
CALL SEND(16, "*sre 1", status%) 'enable MSB
C-10 Example Programs