Chapter 3 Programming Your Universal Counter for Remote Operation
Elements of SCPI Commands
Programming Guide
3-79
To Perform Limit Testing (QuickBASIC) (Continued)
ON PEN GOSUB limitfail 'When SRQ happens, go get out of
PEN ON 'limit result
CALL IOPEN(isc&, priority%)
CALL sendhp(":INIT:CONT ON") 'Set counter to run
PRINT "Making Period measurements"
Loophere: 'Wait here until out of limit
IF complete THEN GOTO endprogram 'If already serviced out of limit
GOTO Loophere 'then end program
limitfail:
complete = 1 'Test bit
CALL IOSPOLL(source&, statusbyte) 'Check status byte. Should be 72
PRINT "Status byte = ", statusbyte
CALL sendhp("FETCH:PERIOD?") 'Fetch the out of limits period
CALL IOENTERS(source&, period, 23, actf%) 'Read the out of limit period
PRINT "Out of limits period is ", period 'Print results
RETURN
endprogram:
END
SUB sendhp (code$)
CALL iooutputs(source, code$, LEN(code$))
END SUB
Summary of Contents for 53131A
Page 1: ...Programming Guide HP 53131A 132A 225 MHz Universal Counter ...
Page 2: ......
Page 13: ...1 1 Before You Start ...
Page 24: ...Chapter 1 Before You Start Related Documentation 1 12 Programming Guide ...
Page 25: ...2 2 Command Summary A Quick Reference ...
Page 68: ...Chapter 2 Command Summary RST Response 2 44 Programming Guide ...
Page 69: ...3 3 Programming Your Universal Counter for Remote Operation ...
Page 167: ...4 4 Command Reference A Dictionary ...
Page 310: ...Chapter 4 Command Reference WAI Wait to Continue Command 4 144 Programming Guide ...
Page 311: ...5 5 Errors ...
Page 329: ......
Page 330: ...H Manual Part Number 53131 90044 Printed in U S A NOVEMBER 1996 ...