43Program SamplesN9060A Spectrum Analyzer Mode Programing SamplesPoll Method for Operation CompleteSRQ Method for Operation CompleteSet and Query Relative Band Power MarkersSet Traces and Couple MarkersFunction Serial Poll for Sweep CompleteDescription This example demonstrates how to:1. Modify the timeout value2. Initiate a sweep3. Poll the instrument to determine when the operation is complete4. Query and report the sweep resultLanguage CFile name mxa_sweep.cFunction Service Request Method (SRQ) determines when a measurement is done by waiting for SRQ, then reading the StatusRegister.Description This example demonstrates how to:1. Define an SRQ interrupt handler2. Set up mode and measurement parameters3. Set the service request mask to assert SRQ when either a measurement is uncalibrated or an error message has occurred4. Install the interrupt handler5. Initiate a sweep6. Wait for an SRQ interrupt7. When an SRQ interrupt occurs, examine its source and type and report the result8. Uninstall the interrupt handlerThe STATus subsystem of commands is used to monitor and query hard ware status. For details of these commands and registers,see the section "Measurement Group of Commands" in any X-Series Help file or Users & Programmers Reference PDF.Language CFile name mxa_srq.cFunction Relative Band Power MarkersDescription This example demonstrates how to:1. Set up a calibration signal2. Set Markers 1 through 5 as Band Power Markers3. Obtain the band power of Markers 2 through 5, relative to Marker 1Language CFile name mxa_bpm.cFunction Trace Detector/Couple Markers