Status Register Scpi Commands - Keysight Technologies X-Series Programming Manual

Signal generators
Hide thumbs Also See for X-Series:
Table of Contents

Advertisement

Programming the Status Register System
Accessing Status Register Information
If a program enables the controller to detect and respond to service requests, it
should instruct the controller to perform a serial poll when SRQ is true. Each
device on the bus returns the contents of its status byte register in response to
this poll. The device whose request service summary (RQS) bit is set to 1 is the
device that requested service.
When you read the signal generator's Status Byte Register with a serial
poll, the RQS bit is reset to 0. Other bits in the register are not affected.
If the status register is configured to SRQ on end-of-sweep or measurement
and the mode set to continuous, restarting the measurement (INIT command)
can cause the measuring bit to pulse low. This causes an SRQ when you have
not actually reached the "end-of-sweep" or measurement condition. To avoid
this, do the following:
1. Send the command INITiate:CONTinuous OFF.
2. Set/enable the status registers.
3. Restart the measurement (send INIT).

Status Register SCPI Commands

Most monitoring of signal generator conditions is done at the highest level
using the IEEE 488.2 common commands listed below. You can set and query
individual status registers using the commands in the STATus subsystem.
176
*CLS (clear status) clears the Status Byte Register by emptying the error
queue and clearing all the event registers.
*ESE, *ESE? (event status enable) sets and queries the bits in the Standard
Event Enable Register which is part of the Standard Event Status Group.
*ESR? (event status register) queries and clears the Standard Event Status
Register which is part of the Standard Event Status Group.
*OPC, *OPC? (operation complete) sets bit #0 in the Standard Event Status
Register to 1 when all commands have completed. The query stops any new
commands from being processed until the current processing is complete,
then returns a 1.
*PSC, *PSC? (power-on state clear) sets the power-on state so that it clears
the Service Request Enable Register, the Standard Event Status Enable
Register, and device-specific event enable registers at power on. The query
returns the flag setting from the *PSC command.
*SRE, *SRE? (service request enable) sets and queries the value of the
Service Request Enable Register.
*STB? (status byte) queries the value of the status byte register without
erasing its contents.
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents