Chapter 3 Programming Your Universal Counter for Remote Operation
Elements of SCPI Commands
Programming Guide
3-87
To Optimize Throughput (QuickBASIC) (Continued)
'The following lines will provide the fastest throughput, regardless of
'the state of the counter before these lines are executed.
CALL sendhp(":FREQ:ARM:STAR:SOUR IMM") 'These 3 lines enable using
CALL sendhp(":FREQ:ARM:STOP:SOUR IMM") 'time arming with a 0.1 second
CALL sendhp(":EVENT1:LEVEL 0") 'Set trigger level on channel 1
'This also disables auto trigger
CALL sendhp(":CALC:MATH:STATE OFF") 'Make sure all post-processing
CALL sendhp(":CALC2:LIM:STATE OFF") 'is turned off.
CALL sendhp(":CALC3:AVER:STATE OFF")
CALL sendhp(":HCOPY:CONT OFF") 'Do not update printing operations
CALL sendhp(":ROSC:SOUR INT")
CALL sendhp(":ROSC:EXT:CHECK OFF")
CALL sendhp(":DIAG:CAL:INT:AUTO OFF") 'Disable automatic interpolator
'calibration. The most recent
'calibration factors will be
'used in the calculation for
'frequency
CALL sendhp("*DDT #15FETC?") 'Define trigger as fetc?
CALL sendhp(":DISP:ENABLE OFF") 'Turn off the display
CALL sendhp("READ:FREQUENCY?") 'Read the expected frequency
CALL IOENTERS(source&, freqstring(1), maxelem%, actual%)
CALL sendhp(":FREQ:EXP1 " + freqstring(1)) 'Send the expected frequency
CALL sendhp(":INIT:CONT ON") 'Start making measurements
PRINT "Making measurements"
FOR i = 1 TO samples
CALL IOTRIGGER(source) 'Query the counter for data
CALL IOENTERS(source&, freqstring(i), 22, actual%) 'Read the ASCII characters
NEXT i
PRINT "Measurements complete"
END
SUB sendhp (code$)
CALL iooutputs(source, code$, LEN(code$))
END SUB
Содержание 53131A
Страница 1: ...Programming Guide HP 53131A 132A 225 MHz Universal Counter ...
Страница 2: ......
Страница 13: ...1 1 Before You Start ...
Страница 24: ...Chapter 1 Before You Start Related Documentation 1 12 Programming Guide ...
Страница 25: ...2 2 Command Summary A Quick Reference ...
Страница 68: ...Chapter 2 Command Summary RST Response 2 44 Programming Guide ...
Страница 69: ...3 3 Programming Your Universal Counter for Remote Operation ...
Страница 167: ...4 4 Command Reference A Dictionary ...
Страница 172: ...Chapter 4 Command Reference CALCulate Subsystems 4 6 Programming Guide Figure 4 1 The CALCulate Subsystems ...
Страница 310: ...Chapter 4 Command Reference WAI Wait to Continue Command 4 144 Programming Guide ...
Страница 311: ...5 5 Errors ...
Страница 329: ......
Страница 330: ...H Manual Part Number 53131 90044 Printed in U S A NOVEMBER 1996 ...