HP WaterSkis E1412A, WaterSkis E1312A manual Synchopc Source Code File, RST CLS *ESE Init OPC

Models: WaterSkis E1412A WaterSkis E1312A

1 212
Download 212 pages 21.44 Kb
Page 61
Image 61

SYNCHOPC Source Code File

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

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)

Loop

SPOLL - read the multimeter’s status byte until bit 5 (ESB) goes high. End Loop

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 61

Page 61
Image 61
HP WaterSkis E1412A, WaterSkis E1312A manual Synchopc Source Code File, RST CLS *ESE Init OPC