6517B-900-01 Rev. A / Jun 2008
Return to
5-15
Model 6517B Electrometer User’s Manual
Section 5: Remote Operation
After the Model 6517B receives the
INITiate
command, it stops in the
TRIGger
layer of the
trigger model, waiting for a pulse on the external trigger jack. Each time a pulse arrives on the
external trigger jack, the Model 6517B takes one reading. Because
TRIGger:COUNt
has been set
to
INFinity
, the trigger model never exits from the
TRIGger
layer. You can send the
ABORt
command to put the trigger model in the idle state, disabling triggers until another
INITiate
command is sent.
Continuous triggering #1
The following example program sets up the Model 6517B to take readings as fast as it can once it
receives an external trigger. The actual reading rate will depend upon other factors, such as A/D
integration time, autorange on/off, and so on.
'Example program to demonstrate continuous triggering
'For QuickBASIC 4.5 and KPC-488.2/CEC interface card
'Edit the following line to where the QuickBASIC
'libraries are on your computer
'$INCLUDE: 'c:\qb45\ieeeqb.bi'
'Initialize the 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(27, "*rst", status%)
'*RST sets TRIG:SOUR to IMM
CALL SEND(27, "arm:lay2:sour ext", status%)
CALL SEND(27, "trig:coun inf", status%)
'start everything
CALL SEND(27, "init", status%)
After the Model 6517B receives the
INITiate
command, it stops in
ARM:LAYer2
of the trigger
model, waiting for a pulse on the external trigger jack. After the external trigger signal occurs, the
Model 6517B moves to the
TRIGger
layer. Since
TRIGger:SOURce
is set to
IMMediate
, a
reading is triggered immediately, with a subsequent reading triggered as soon as the previous one
is finished.
Continuous triggering #2
The following example program sets up the Model 6517B 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 KPC-488.2/CEC interface card
'Edit the following line to where the QuickBASIC
'libraries are on your computer
'$INCLUDE: 'c:\qb45\ieeeqb.bi'
'Initialize the 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(27, "*rst", status%)
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176
TestEquipmentDepot.com