Keithley 2000 User Manual page 242

Hide thumbs Also See for 2000:
Table of Contents

Advertisement

C-10
Example Programs
The following example program sets up the Model 2000 using a scan list to measure DC volt-
age 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 2000
stores the readings in the buffer, and asserts SRQ when the buffer is full. The program waits for
the SRQ, 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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents