42Program SamplesN9060A Spectrum Analyzer Mode Programing SamplesRetrieve Screen ImagesRead Binary Trace DataC, C++The samples provided are console applications written in C, but these should also be compilable by most C++ compilers.1. Poll Method for Operation Complete2. SRQ Method for Operation Complete3. Set and Query Relative Band Power Markers4. Set Traces and Couple Markers5. Phase Noise Trace MathAll the samples use the VISA driver.Function Transfer Screen Images from the instrumentDescription This example demonstrates how to:1. Store the current screen image in instrument memory as “D:\PICTURE.PNG”2. Transfer the memory image file via GPIB or LAN3. Store the transferred image in the computer’s current directory as “C:\PICTURE.PNG”4. Delete the instrument memory file "D:\PICTURE.PNG"Language Visual Basic 6File name mxa_screen.basFunction Read Binary Block Trace data from the instrumentDescription This example demonstrates how to:1. Open a VISA session via GPIB or LAN2. Modify the timeout value3. Send the *IDN? query to the instrument, then display the result4. Change the instrument mode to Spectrum Analyzer5. Set the Trace data format to REAL,32 or REAL,646. Set the instrument to Single Sweep7. Initiate a sweep8. Read the trace data and display it9. Store the trace data to the file “bintrace.txt”The binary data transfer method is faster than the default ASCII transfer mode, because less data is sent over the bus. For moreinformation about data formats, see the section "Remote Measurement Functions" in any X-Series Help file or Users &Programmers Reference PDF.Language Visual Basic 6File name bintrace.bas