Model 6517A Getting Started Manual
Remote Operation
3-19
'Example program to demonstrate changing function and range,
'taking readings on various functions
'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 the SENSe1 subsystem settings, along with the trigger
'model, each READ? will cause one trigger
CALL SEND(27, "*rst", status%)
'Set range for each function to measure
CALL SEND(27, "volt:dc:rang 10", status%)
CALL SEND(27, "curr:dc:rang 0.003", status%)
CALL SEND(27, "res:rang 10e6", status%)
'Switch to volts and take reading
CALL SEND(27, "func 'volt:dc';:read?", status%)
reading$ = SPACE$(80)
CALL ENTER(reading$, length%, 27, status%)
PRINT reading$
'Switch to current and take reading
CALL SEND(27, "func 'curr:dc';:read?", status%)
reading$ = SPACE$(80)
CALL ENTER(reading$, length%, 27, status%)
PRINT reading$
'Switch to 2-wire ohms and take reading
CALL SEND(27, "func 'res';:read?", status%)
reading$ = SPACE$(80)
CALL ENTER(reading$, length%, 27, status%)
PRINT reading$
One-shot triggering
Our older instruments generally have two types of triggering: one-shot and continuous. In
one-shot, each activation of the selected trigger source causes one reading. In continuous,
the instrument is idle until the trigger source is activated, at which time it begins taking
readings at a specified rate. Typical trigger sources for non-SCPI instruments are:
•
IEEE-488 talk
•
IEEE-488 Group Execute Trigger (GET)
•
“X” command
•
External trigger (rear panel BNC)
Summary of Contents for 6517A
Page 12: ...1 FrontPanelOperation...
Page 36: ...2 MeasurementOptions...
Page 67: ...3 RemoteOperation...
Page 96: ...4 SpecsandAccessories...