EasyManua.ls Logo

Rohde & Schwarz MXO 4 Series - Programming Tips and Examples

Rohde & Schwarz MXO 4 Series
925 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Remote control commandsMXO 4 Series
884User Manual 1335.5337.02 ─ 07
17.19.9 Programming tips and examples
Example: Observing the limits violation of a measurement
The following example describes how to use the status register commands to observe,
if a violation of a measurement limit has occurred.
*SRE 8
// Enables the STATus:QUEStionable bit in the service-request (SRE)
STATus:QUEStionable:ENABle 512
// Enables the LIMIt bit of the STATus:QUEStionable register
MEASurement1:ENABle ON
MEASurement2:ENABle ON
MEASurement3:ENABle ON
// Enables measurement 1,2,3
STATus:QUEStionable:LIMit:ENABle ALL
// Enables the limit check for all active measurements
STATus:QUEStionable:LIMit:ENABle?
MEAS1,MEAS2,MEAS3
//Queries which measurement were active at the time the
//STATus:QUEStionable:LIMit:ENABle was send
*SRQ?
// A service request was sent
*STB?
72
// STATus:QUEStionable is set:
// #72= 64 + 8 = 2^6 + 2^3
// 64 : bit 6 is awlays on when a SRQ is sent
// 8: bit 3 for STATus:QUEStionable
STATus:QUEStionable:EVENt?
512
// 512= 2^9,
STATus:QUEStionable:LIMit:EVENt?
MEAS1,MEAS2
// Measurements 1 and 2 have exceeded the limit
// The event register is cleared after the query
STATus:QUEStionable:LIMit:EVENt?
NONE
// The event bit has been set to 0 after the first query
Status reporting

Table of Contents

Related product manuals