6517B-900-01 Rev. A / Jun 2008
Return to
5-13
Model 6517B Electrometer User’s Manual
Section 5: Remote Operation
Some of the more useful bits of these event registers are summarized as follows:
Measurement event register
Operation event register
Bit B0 set = reading overflow
Bit B9 set = calculating
Bit B5 set = reading available
Bit B10 set = idle
Bit B7 set = buffer available
Bit B11 set = sequence test running
Bit B8 set = buffer half full
Bit B9 set = buffer full
Bit B14 set = V-source compliance
Program examples
All examples presume QuickBASIC version 4.5 or higher and a Keithley Instruments KPC-488.2 or
CEC IEEE-488 interface card with CEC driver version 2.11 or higher, with the Model 6517B at
address 27 on the IEEE-488 bus.
Changing function and range
The Model 6517B has independent controls for each of its measurement functions. This means,
for example, that autorange can be turned on for volts while leaving it off for amps.
Another difference is in the range command parameter. In older instruments, a single number was
used to denote each range. The parameter of the SCPI
RANGe
command is given as “the
maximum value to measure.” The instrument interprets this parameter and goes to the appropriate
range. When you query the range with
RANGe?
the instrument sends back the full-scale value of its
present range.
The following example program illustrates changing function and range. It sets the range for
several functions, then takes readings on each of those functions.
Note that the Model 6517B rounds the range parameter to an integer before choosing the
appropriate range. Sending
VOLTage:DC:RANGe 20.45
will set the Model 6517B to the 20V
range.
'Example program that demonstrates 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%)
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 ...