HP E1412A SCAN Source Code File

See SCAN1312 Example Program for HP E1312A Code (The HP E1312A cannot use TTL triggers)

SCPI command sequences for the program are as follows.

**** Set up the Multimeter ****

*RST

*CLS

CONF:VOLT 12,MIN

TRIG:SOUR TTLT2 TRIG:COUN 8 TRIG:DEL 0.01 OUTP:TTLT1:STAT ON CALC:FUNC AVER CALC:STAT ON *OPC?

INIT

Reset the multimeter.

Clear the multimeter’s status registers. Configure for dc volts, 12V input, min res. Let switch closure trigger multimeter. Multimeter will accept 8 triggers.

Use a 10 ms delay before each measurement, Output VM Complete to switch via TTLT1. Select the math function AVERage.

Enable math operations.

Wait until above commands are processed. Read the response to the *OPC? command from multimeter. Puts multimeter in the "wait-for-trigger" state; trigger source is TTLTrig2 line OUTPut by the switch.

**** Now set up the switch module ****

*RST

*CLS

ABOR STAT:OPER:ENAB 256 OUTP:TTLT2:STAT ON TRIG:SOUR TTLT1 SCAN (@100:107) *OPC?

INIT

Reset the switch module.

Clear the switch module’s status registers. Abort any switch operation in progress. Enable bit 8 of operation status register. Enable switch closure to trigger multimeter. Allow VM Complete to advance the scan. Specify a switch module scan list.

Wait until above commands are processed. Read the response to the *OPC? command from switch. Starts scanning by closure of the first channel in the scan list; sends output signal to multimeter via TTLTrig2 to trigger a measurement; multimeter sends TTLT1 (VM Complete) back to switch module to advance scan to the next channel; measurements are stored in multimeter internal memory.

*****************************************************

Read switch’s status byte until all channels are scanned and scan complete (bit 8 in the operation status register) sets the OPR bit in the status byte.

*****************************************************

Retrieve the readings from the multimeter.

FETC?

Transfer measurements from the multimeter internal

 

memory to the output buffer and retrieve them with

 

the computer.

Retrieve the AVERage math operation response from the multimeter.

CALC:AVER:AVER? Retrieve the average measurement value.

CALC:AVER:MAX? Retrieve the maximum measurement value.

CALC:AVER:MIN? Retrieve the minimum measurement value.

Check the multimeter for system errors.

SYST:ERR?Retrieve the system error response from the multimeter.

Chapter 2

HP E1312A/E1412A Multimeter Application Information 59

Page 59
Image 59
HP WaterSkis E1412A manual Set up the Multimeter, Now set up the switch module, Retrieve the readings from the multimeter