Keithley 2002 Getting Started Manual page 76

Hide thumbs Also See for 2002:
Table of Contents

Advertisement

3-22
IEEE-488 Bus Operation
Continuous triggering #2
The following example program sets up the Model 2002 to take readings continuously after
an external trigger is received. The trigger rate is set to one reading every 50ms.
'Example program to demonstrate continuous triggering
'at a specified rate
'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 in INIT, ARM;LAY1, ARM:LAY2, and TRIG subsystems
'and put trigger model in IDLE state
CALL SEND(16, "*rst", status%)
'*RST sets TRIG:SOUR to IMM
CALL SEND(16, "arm:lay2:sour ext", status%)
CALL SEND(16, "trig:coun inf;sour tim;tim .05", status%)
'start everything
CALL SEND(16, "init", status%)
After the Model 2002 receives the
model, waiting for a pulse on the external trigger jack. After the external trigger signal occurs,
the Model 2002 moves to the
is triggered immediately, with a subsequent reading every 50ms. Because
been set to infinity, the trigger model never exits from the
command, it stops in
INITiate
layer. Since
TRIGger
TRIGger:SOURce
of the trigger
ARM:LAYer2
is set to
TIMer
TRIGger:COUNt
layer.
TRIGger
, a reading
has

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents