Configure example – Agilent Technologies 34401A User Manual
Page 122

CONFigure
Example
The following program segment shows how to use the
READ?
command
with
CONFigure
to make an externally-triggered measurement.
The program configures the multimeter for dc voltage measurements.
CONFigure
does not place the multimeter in the “wait-for-trigger” state.
The
READ?
command places the multimeter in the “wait-for-trigger”
state, takes a reading when the Ext Trig terminal is pulsed, and sends
the reading to the output buffer.
CONF:VOLT:DC 10, 0.003
TRIG:SOUR EXT
READ?
bus enter statement
CONFigure
Example
The following program segment is similar to the program above but it
uses
INITiate
to place the multimeter in the “wait-for-trigger” state.
The
INITiate
command places the multimeter in the “wait-for-trigger”
state, takes a reading when the Ext Trig terminal is pulsed, and sends
the reading to the multimeter’s internal memory. The
FETCh?
command
transfers the reading from internal memory to the output buffer.
CONF:VOLT:DC 10, 0.003
TRIG:SOUR EXT
INIT
FETC?
bus enter statement
Storing readings in memory using the
INITiate
command is faster
than sending readings to the output buffer using the
READ?
command.
The multimeter can store up to 512 readings in internal memory. If you
configure the multimeter to take more than 512 readings (using the
sample count and trigger count), and then send
INITiate
, a memory
error is generated.
After you execute an
INITiate
command, no further commands are
accepted until the measurement sequence is completed. However, if you
select
TRIGger:SOURce BUS
, the multimeter will accept the
*TRG
command (bus trigger) or an
IEEE-488
Group Execute Trigger message.
Chapter 4 Remote Interface Reference
Simplified Programming Overview
116