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

*CLS CONF:VOLT 10 CALC:STAT ON CALC:LIM:LOW 2 CALC:LIM:UPP 8 CALC:FUNC LIM STAT:QUES:ENAB 6144 *SRE 8

Reset the multimeter.

Clear the multimeter’s status registers. Configure for dc volts, 10V range. Enable the math function.

Set lower limit to 2. Set upper limit to 8.

Select a math function; set to LIMit. Unmask the limit error bits.

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.

Chapter 2

HP E1312A/E1412A Multimeter Application Information 63

Page 63
Image 63
HP WaterSkis E1412A, WaterSkis E1312A manual Limittst Source Code File, End Loop Check the multimeter for system errors