6517B-900-01 Rev. A / Jun 2008
Return to
5-17
Model 6517B Electrometer User’s Manual
Section 5: Remote Operation
Once an event register has caused a service request, it cannot cause another service request until
you clear it by reading it (in this case using
STATus:MEASurement[:EVENt]?)
or by sending the
*CLS
command.
Storing readings in the buffer
The reading buffer in the Model 6517B is flexible and capable. It has three controls, which are
found in the
TRACe
subsystem. There are commands to control:
•
The size of the buffer (in readings):
TRACe:POINts <NRf>
•
Whether or not extra data is stored with each reading (for example, channel number, time-
stamp); storing extra data reduces the maximum size of the buffer:
TRACe:ELEMents <name>
Specify additional reading elements;
TSTamp,
HUMidity, CHANnel, ETEMperature, VSOurce,
or
NONE
•
Select buffer control mode:
TRACe:FEED:CONTrol NEVer
Immediately stop storing readings
TRACe:FEED:CONTrol NEXT
Start now, stop when buffer is full
TRACe:FEED:CONTrol ALWays
Start now, never stop
TRACe:FEED:CONTrol PRETrigger
Start now, stop when pretrigger is satisfied
The following example program sets up the Model 6517B to take 20 readings as fast as it can into
the buffer, then reads the data back after the buffer has filled. The readings will be stored with the
timestamp and other information, but the program reads back only the reading values and
timestamp.
'Example program to demonstrate the reading buffer
'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%)
'Reset STATus subsystem (not affected by *RST)
CALL SEND(27, "stat:pres;*cls", status%)
CALL SEND(27, "stat:meas:enab 512", status%)'enable BFL
CALL SEND(27, "*sre 1", status%)'enable MSB
CALL SEND(27, "trig:coun 20", status%)
'TRACe subsystem is not affected by *RST
CALL SEND(27, "trac:poin 20;elem none", status%)
CALL SEND(27, "trac:feed:cont next", status%)
'Start everything
CALL SEND(27, "init", status%)
'Initialize reading$ while the 6517B is busy taking readings
reading$ = SPACE$(4000)
WaitSRQ:
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176
TestEquipmentDepot.com
Содержание 6517B
Страница 3: ...Test Equipment Depot 800 517 8431 99 Washington Street Melrose MA 02176 TestEquipmentDepot com ...
Страница 5: ...Test Equipment Depot 800 517 8431 99 Washington Street Melrose MA 02176 TestEquipmentDepot com ...
Страница 89: ...Test Equipment Depot 800 517 8431 99 Washington Street Melrose MA 02176 TestEquipmentDepot com ...
Страница 90: ...12 06 Test Equipment Depot 800 517 8431 99 Washington Street Melrose MA 02176 TestEquipmentDepot com ...