IEEE-488 Reference
3-156
' Set to send ascii readings:
CALL send(27, ":FORM:DATA ASCII", status%)
CALL send(27, ":FORM:ELEM READ", status%)
' Select autoranging amps:
CALL send(27, ":SENS:FUNC 'CURR'", status%)
CALL send(27, ":SENS:CURR:RANG:AUTO ON", status%)
' Configure Staircase Sweep from 0V to 20V in 2V steps:
CALL send(27, ":TSEQ:TYPE STSW", status%)
CALL send(27, ":TSEQ:STSW:STAR 0", status%)
CALL send(27, ":TSEQ:STSW:STOP 20", status%)
CALL send(27, ":TSEQ:STSW:STEP 2", status%)
CALL send(27, ":TSEQ:STSW:STIM 0.3", status%)
CALL send(27, ":TSEQ:TSO IMM", status%)
' Wait for commands to complete processing:
DATA1$ = SPACE$(600)
CALL send(27, "*OPC?", status%)
CALL enter(DATA1$, length%, 27, status%)
' Start Test Sequence:
CALL send(27, ":TSEQ:ARM", status%)
' Wait for SRQ (buffer full):
WaitSRQ:
IF (NOT (srq%)) THEN GOTO WaitSRQ
CALL spoll(27, poll%, status%)
IF (poll% AND 64) = 0 THEN GOTO WaitSRQ
' Dump buffer readings to computer CRT:
CALL send(27, ":TRACE:DATA?", status%)
CALL enter(DATA1$, length%, 27, status%)
A = 1
FOR I = 1 TO 11
r$ = MID$(DATA1$, A, 13)
PRINT r$
A = A + 14
NEXT I
END
3.26 UNIT Subsystem
The UNIT subsystem (see Table 3-17) is used to select measurement units for temperature read-
ings.
:TEMPerature <name>
:UNIT:TEMPerature <name>
Select temperature units
Parameters
<name> = C or CEL
°C temperature units
F or FAR
°F temperature units
K
K temperature units
Query
:TEMPerature?
Query temperature units
Description
This command is used to select the units for temperature readings (internal and external). This
command controls the temperature reading units for the multiple displays, buffer readings and
readings sent out over the bus.