45Program SamplesN9060A Spectrum Analyzer Mode Programing SamplesRetrieve Screen ImagesPoll Method for Operation CompleteSRQ Method for Operation CompleteFunction Capture and transfer Screen Images from the instrumentDescription This example demonstrates how to:1. Store the current screen image as a PNG file on the instrument’s D: drive, with a user-specified name2. Retrieve the screen image data from the instrument as a Program Data Block3. Analyze the header of the Program Data Block and extract the PNG bitmap from the block4. Store the extracted bitmap as a PNG file in the computer’s current directory, with the same user-specified name5. Delete the PNG file that was stored on the instrument’s D: driveLanguage C#Project Folder vs2010.net/x_screencaptureFunction 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 C#Project Folder vs2010.net/x_sweepFunction Service Request Method (SRQ) determines when a measurement is done by waiting for SRQ, then reading the StatusRegister.Header/ Library visa32.csDescription This multi-threaded 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. Set up a wait for multiple events7. 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 C#Project Folder vs2010.net/x_srq