HP E1312A User Manual page 61

Table of Contents

Advertisement

SYNCHOPC
Source Code File
Chapter 2
This program has the multimeter take 10 measurements. The Standard Event
bit (ESB) in the status byte (see Figure 2-5 on page 60) is monitored to detect
when the operation is complete. Readings are transferred to the output buffer
by a
FETC?
command and retrieved by the computer following the
indication that the operation has completed. The Multimeter then calculates
the average, minimum and maximum reading.
**** Set up the Multimeter ****
*RST
*CLS
*ESE 1
CONF:VOLT 15
VOLT:DC:NPLC 10
TRIG:COUN 10
TRIG:DEL .01
CALC:FUNC AVER
CALC:STAT ON
*SRE 32
INIT
*OPC
Loop
SPOLL - read the multimeter's status byte until bit 5 (ESB) goes high.
End Loop
FETC?
Retrieve the
AVERage
CALC:AVER:AVER?
CALC:AVER:MAX?
CALC:AVER:MIN?
Check the multimeter for system errors.
SYST:ERR?
HP E1312A/E1412A Multimeter Application Information
Reset the multimeter.
Clear the multimeter's status registers.
Enables bit 0 of the multimeter's standard event
register.
Configure for dc volts, expected input of 15V.
Set number of power line cycles to 10.
Multimeter will accept 10 triggers.
Use a 10ms delay before each measurement.
Select the math function AVERage.
Enable math operations.
Required for the E1312A to detect the bit in an
SPOLL.
Puts multimeter in wait-for-trigger state; trig source
is "IMM"; internal trigger occurs "immediately" and
measurements are stored in multimeter internal
memory.
Waits for all measurements to complete then sets bit
0 in the standard event register (the operation
complete bit)
Transfer measurements from the multimeter internal
memory to the output buffer and retrieve them with
the computer.
math operation response from the multimeter.
Retrieve the average measurement value.
Retrieve the maximum measurement value .
Retrieve the minimum measurement value.
Retrieve the system error response from the
multimeter.
61

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1412a

Table of Contents