Specifications
182 Chapter 16
ESA/PSA Programming Examples
Using C and Service Request (SRQ) to Determine When a Measurement is
Complete
ESA/PSA Programming Examples
Using C and Service Request (SRQ) to
Determine When a Measurement is Complete
This C programming example (SRQ.c) can be found on the
Documentation CD.
/*************************************************************************
* SRQ.C
* Determine when a measurement is done by waiting for SRQ
* and reading Status Register
*
* Instrument Requirements:
* PSA/ESA/EMC Series Spectrum Analyzers.
*
* This C programming demonstrates how:
* A. Set the service request mask to assert SRQ when
* either a measurement is uncalibrated or an error
* message has occurred.
* B. Initiate a sweep and wait for the SRQ interupt
* C. Poll all instruments and report the nature of the
* interrupt on the spectrum analyzer
*
* You have a royalty-free right to use, modify, reproduce and distribute
* the Sample Application Files (and/or any modified version) in any way
* you find useful, provided that you agree that Agilent Technologies has
* no warranty, obligations or liability for any Sample Application Files.
*
* Agilent Technologies provides programming examples for illustration only,
* This sample program assumes that you are familiar with the programming
* language being demonstrated and the tools used to create and debug
* procedures. Agilent Technologies support engineers can help explain the
* functionality of Agilent Technologies software components and associated
* commands, but they will not modify these samples to provide added
* functionality or construct procedures to meet your specific needs.
*
* Copyright © 1999- 2004 Agilent Technologies Inc. All rights reserved.