HP (Hewlett-Packard) E1412A Waterskis User Manual


 
HP E1312A/E1412A Multimeter Application Information 59Chapter 2
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
Reset the multimeter.
*CLS
Clear the multimeter’s status registers.
CONF:VOLT 12,MIN
Configure for dc volts, 12V input, min res.
TRIG:SOUR TTLT2
Let switch closure trigger multimeter.
TRIG:COUN 8
Multimeter will accept 8 triggers.
TRIG:DEL 0.01
Use a 10 ms delay before each
measurement,
OUTP:TTLT1:STAT ON
Output VM Complete to switch via TTLT1.
CALC:FUNC AVER
Select the math function AVERage.
CALC:STAT ON
Enable math operations.
*OPC?
Wait until above commands are processed. Read the
response to the *OPC? command from multimeter.
INIT
Puts multimeter in the "wait-for-trigger" state;
trigger source is TTLTrig2 line OUTPut by the
switch.
**** Now set up the switch module ****
*RST
Reset the switch module.
*CLS
Clear the switch module’s status registers.
ABOR
Abort any switch operation in progress.
STAT:OPER:ENAB 256
Enable bit 8 of operation status register.
OUTP:TTLT2:STAT ON
Enable switch closure to trigger multimeter.
TRIG:SOUR TTLT1
Allow VM Complete to advance the scan.
SCAN (@100:107)
Specify a switch module scan list.
*OPC?
Wait until above commands are processed. Read the
response to the *OPC? command from switch.
INIT
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.