How to Use the Message Available Bit (
MAV
)
You can use the status byte “message available” bit (bit 4) to determine
when data becomes available to read into your bus controller. The meter
sets bit 4 when the first reading trigger occurs (which can be
TRIGger:SOURce:IMMediate
). The meter subsequently clears bit 4
only
after all messages have been read from the output buffer.
The message available (
MAV
) bit can only indicate when the
first
reading
is available following a
READ?
command. This can be helpful if you do not
know when a trigger event such as
BUS
or
EXTernal
will occur.
The
MAV
bit is set only after
all
specified measurements have completed
when using the
INITiate
command followed by
FETCh?
. Readings are
placed in the meter’s internal memory when using
INITiate
. Sending
the
FETCh?
command transfers readings (stored in internal memory
by the
INITiate
command) to the meter’s output buffer. Therefore, the
MAV
bit can only be set after
all
measurements have been completed.
Using
*OPC
to Signal When Data is in the Output Buffer
Generally, it is best to use the “operation complete” bit (bit 0) in the
standard event register to signal when a command sequence is
completed. This bit is set in the register after an
*OPC
command has been
executed. If you send
*OPC
after a command which loads a message in
the meter’s output buffer (either reading data or query data), you can use
the operation complete bit to determine when the message is available.
However, if too many messages are generated before the
*OPC
command
executes (sequentially), the output buffer will fill and the meter will stop
taking readings.
Chapter 4 Remote Interface Reference
The SCPI Status Model
164
Содержание 34420A
Страница 1: ......
Страница 2: ......
Страница 13: ...1 Quick Start ...
Страница 31: ...2 Front Panel Operation ...
Страница 55: ...3 Features and Functions ...
Страница 117: ...4 Remote Interface Reference ...
Страница 200: ...5 Error Messages ...
Страница 213: ...6 Application Programs ...
Страница 245: ...6 Chapter 6 Application Programs Microsoft Excel Macro Example 245 ...
Страница 246: ...Chapter 6 Application Programs Microsoft Excel Macro Example 246 ...
Страница 247: ...7 Measurement Tutorial ...
Страница 274: ...8 Specifications ...
Страница 279: ...Dimensions Chapter 8 Specifications 34420A Nano Volt Micro Ohm Meter 280 ...
Страница 294: ......