HP (Hewlett-Packard) E1412A Waterskis User Manual


 
HP E1312A/E1412A Multimeter Application Information 63Chapter 2
LIMITTST
Source Code File
This program has the multimeter making measurements continuously until
an upper or lower limit is exceeded. The lower test limit is set to 2V; the
upper test limit is set to 8V. Questionable Data Register bits 11 and 12 are
unmasked to allow the LO and HI Limit Test Failures to set the QUE bit in
the status byte. An input less the 2V or greater than 8V will report a test
failure and halt the program.
**** Set up the Multimeter ****
*RST
Reset the multimeter.
*CLS
Clear the multimeter’s status registers.
CONF:VOLT 10
Configure for dc volts, 10V range.
CALC:STAT ON
Enable the math function.
CALC:LIM:LOW 2
Set lower limit to 2.
CALC:LIM:UPP 8
Set upper limit to 8.
CALC:FUNC LIM
Select a math function; set to LIMit.
STAT:QUES:ENAB 6144
Unmask the limit error bits.
*SRE 8
Required by the E1312A to detect QUE bit in SPOLL.
Loop
READ?
Trigger measurement and place response into the
output buffer.
Enter response into the computer.
SPOLL - read the multimeter’s status byte until bit 3 (QUE) goes
high to indicate there is a Limit Test Failure (HI or LO).
Wait 1 second.
End Loop
Check the multimeter for system errors.
SYST:ERR?
Retrieve the system error response from the
multimeter.