Retrieve Screen Images; Read Binary Trace Data; C, C; Retrieve Screen Image - Keysight N9000A Manual

Signal analyzers
Hide thumbs Also See for N9000A:
Table of Contents

Advertisement

Program Samples
N9060A Spectrum Analyzer Mode Programing Samples

Retrieve Screen Images

Function
Transfer Screen Images from the instrument
Description
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 LAN
3.
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 6
File name
mxa_screen.bas

Read Binary Trace Data

Function
Read Binary Block Trace data from the instrument
Description
This example demonstrates how to:
1.
Open a VISA session via GPIB or LAN
2.
Modify the timeout value
3.
Send the *IDN? query to the instrument, then display the result
4.
Change the instrument mode to Spectrum Analyzer
5.
Set the Trace data format to REAL,32 or REAL,64
6.
Set the instrument to Single Sweep
7.
Initiate a sweep
8.
Read the trace data and display it
9.
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 more
information about data formats, see the section "Remote Measurement Functions" in any X-Series Help file or Users &
Programmers Reference PDF.
Language
Visual Basic 6
File name
bintrace.bas

C, 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 Complete
2.
SRQ Method for Operation Complete
3.
Set and Query Relative Band Power Markers
4.
Set Traces and Couple Markers
5.
Phase Noise Trace Math
All the samples use the VISA driver.
42

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

N9038aN9010aN9030aN9020a

Table of Contents