Retrieve Screen Images
Function
Capture and transfer Screen Images from the instrument
Description
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 name
2.
Retrieve the screen image data from the instrument as a Program Data Block
3.
Analyze the header of the Program Data Block and extract the PNG bitmap from the block
4.
Store the extracted bitmap as a PNG file in the computer's current directory, with the same user-specified name
5.
Delete the PNG file that was stored on the instrument's D: drive
Language
C#
Project Folder
vs2010.net/x_screencapture
Poll Method for Operation Complete
Function
Serial Poll for Sweep Complete
Description
This example demonstrates how to:
1.
Modify the timeout value
2.
Initiate a sweep
3.
Poll the instrument to determine when the operation is complete
4.
Query and report the sweep result
Language
C#
Project Folder
vs2010.net/x_sweep
SRQ Method for Operation Complete
Function
Service Request Method (SRQ) determines when a measurement is done by waiting for SRQ, then reading the Status
Register.
Header/ Library
visa32.cs
Description
This multi-threaded example demonstrates how to:
1.
Define an SRQ interrupt handler
2.
Set up mode and measurement parameters
3.
Set the service request mask to assert SRQ when either a measurement is uncalibrated or an error message has occurred
4.
Install the interrupt handler
5.
Initiate a sweep
6.
Set up a wait for multiple events
7.
When an SRQ interrupt occurs, examine its source and type and report the result
8.
Uninstall the interrupt handler
The 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
N9060A Spectrum Analyzer Mode Programing Samples
45
Program Samples