Example 5. Program Written in LabView
The following program shows the control over the Analyzer using the LabView
language with the VISA library.
Below see the block diagram of the program and front panel of the program with
the program execution result.
The front panel contains the entry field for the Analyzer name “VISA Resource
Name”. For more detail on VISA Resource Name see the VISA library documentation.
The user must enter the Analyzer address, select the trace format in the “Format”
field, and click the “Run” button. As the result of the program, the Analyzer
information string will be displayed and the measurement trace will be plotted.
Program description:
1. Sets up the communication with the Analyzer.
2. Reads out and displays the Analyzer information string.
3. Sets some parameters of the Analyzer.
4. Generates the trigger and waits for the sweep completion.
5. Sets the trace format to the format entered by the user in the “Format” field.
6. Reads out the measurement data.
7. Displays the measurement data.