254
Chapter 4 Remote Interface Reference
The SCPI Status System
4
Using the Message Available Bit (MAV)
You can use the Status Byte “Message Available” bit (bit 4) to determine
when data is available to read into your computer. The instrument
subsequently clears bit 4 only after all messages have been read from the
output buffer.
To Interrupt Your Computer Using SRQ
1. Send a Device Clear message to return the function generator to a
responsive state and clear it’s output buffer (e.g.,
CLEAR 710
).
2. Clear the event registers and error queue using the
*CLS
command.
3. Set up the enable register masks. Use the
*ESE
command to
configure the Standard Event enable register and the
*SRE
command
to configure the Status Byte enable register.
4. Send the
*OPC?
command and read the result to ensure synchronization.
5. Enable your computer’s IEEE-488 SRQ interrupt.
To Determine When a Command Sequence is Completed
1. Send a Device Clear message to return the function generator to a
responsive state and clear it’s output buffer (e.g.,
CLEAR 710
).
2. Clear the event registers and error queue using the
*CLS
command.
3. Enable the “Operation Complete” bit (bit 0) in the Standard Event
register by executing the
*ESE 1
command.
4. Send the
*OPC?
command and read the result to ensure synchronization.
5. Execute your command string to program the desired configuration,
and then execute the
*OPC
command as the last command. When the
command sequence is completed, the “Operation Complete” bit (bit 0)
is set in the Standard Event register.
6. Use a Serial Poll to check to see when bit 5 (routed from the Standard
Event register) is set in the Status Byte condition register. You could
also configure the function generator for an SRQ interrupt by sending
*SRE 32
(Status Byte enable register, bit 5).
33210A users guide.book Page 254 Wednesday, July 16, 2008 11:16 AM
Summary of Contents for 33210A
Page 1: ...Keysight 33210A 10 MHz Function Arbitrary Waveform Generator User s Guide ...
Page 2: ......
Page 3: ......
Page 14: ...12 Contents Contents 33210A users guide book Page 12 Wednesday July 16 2008 11 16 AM ...
Page 15: ...1 1 Quick Start 33210A users guide book Page 13 Wednesday July 16 2008 11 16 AM ...
Page 53: ...3 3 Features and Functions 33210A users guide book Page 51 Wednesday July 16 2008 11 16 AM ...
Page 273: ...5 5 Error Messages 33210A users guide book Page 271 Wednesday July 16 2008 11 16 AM ...
Page 301: ...6 6 Application Programs 33210A users guide book Page 299 Wednesday July 16 2008 11 16 AM ...
Page 311: ...7 7 Tutorial 33210A users guide book Page 309 Wednesday July 16 2008 11 16 AM ...
Page 335: ...8 8 Specifications 33210A users guide book Page 333 Wednesday July 16 2008 11 16 AM ...