Making Single Readings; Making Multiple Readings - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

Making Single
Readings
10 OUTPUT 722;"RESET"
20 OUTPUT 722;"TARM HOLD"
30 OUTPUT 722;"DCV 10"
40 OUTPUT 722;"NPLC 1"
50 OUTPUT 722;"AZERO OFF"
60 OUTPUT 722;"TARM SGL"
70 ENTER 722;A
80 PRINT A
90 END
10 OUTPUT 722;"PRESET NORM"
20 OUTPUT 722;"TRIG SGL"
30 ENTER 722;A
40 PRINT A
50 END
Making Multiple
Readings
10 OPTION BASE 1
20 DIM Rdgs(lO)
30 OUTPUT 722;"PRESET NORM"
40 OUTPUT 722;"INBUF ON"
OUTPUT 722;"TARM AUTO"
!Resumes readings suspended by TARM HOLD, PRESET FAST, or PRESET DIG
OUTPUT 722; "TRIG AUTO"
!Resumes readings suspended by TRIG HOLD or PRESET NORM
The NRDGS command specifies the number of readings made per trigger
event and the sample event that initiates each reading. In the power-on,
RESET, PRESET NORM, or PRESET FAST state, the number of readings
per trigger is set to 1 and the sample event is AUTO (NRDGS 1,AUTO). In
any of these states, you can initiate a single reading by executing the TARM
SGL or TRIG SGL command (depending on which event, if any, is
suspending readings). For example, the following program resets the
multimeter and suspends readings by setting the trigger arm event to HOLD.
The configuration is changed (lines 30-50) and line 60 initiates a single
reading, which is transferred to the controller and displayed. After the single
reading, the trigger arm event becomes HOLD, which suspends readings.
In the PRESET NORM state, readings are suspended because the trigger
event is set to SYN (the SYN event is discussed later in this chapter). In this
state, you can initiate a single reading using the TRIG SGL command. For
example, in the following program, line 10 suspends readings by setting the
trigger event to SYN. Line 20 initiates a single reading and the reading is
transferred to the controller and displayed. Following execution of the TRIG
SGL command, the trigger event becomes HOLD which suspends readings.
You can use the NRDGS command to specify more than one reading per
trigger event. For example, the following program takes 10 readings per
trigger event (one reading is taken per sample event) and transfers them to
the controller. Notice that the input buffer is enabled (line 40). This is
because, with the input buffer disabled, the SGL event (line 60) holds the
GPIB bus until all specified readings are complete. This would prevent line
70 from transferring all but the last reading to the controller. Enabling the
input buffer prevents the TRlG SGL command from holding the bus and
allows each reading to be transferred as it becomes available.
!COMPUTER ARRAY NUMBERING STARTS AT 1
!DIMENSION ARRAY FOR 10 READINGS
!TARM AUTO, TRIG SYN, DCV AUTORANGE
!ENABLE INPUT BUFFER
or
!RESET, ALL TRIGGERING EVENTS AUTO
!SUSPEND READINGS
!DC VOLTAGE, 10V RANGE
!1 PLC INTEGRATION TIME
!AUTOZERO OFF
!TRIGGER 1 READING
!ENTER READING
!PRINT READING
!TARM AUTO, TRIG SYN, NRDGS 1,AUTO
!GENERATE SINGLE TRIGGER
!ENTER READING
!PRINT READING
Chapter 4 Making Measurements
83

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents