Program Samples
N9060A Spectrum Analyzer Mode Programing Samples
Description
This example demonstrates how to:
1.
Set various types of trace (Max Hold, Clear Write, Min Hold)
2.
Relate markers to specified traces
3.
Couple markers
NOTE
Language
C
File name
mxa_tracecouple.c
Phase Noise Trace Math
Function
Phase Noise Trace Math Calculation
Description
This example demonstrates how to remove instrument noise from phase noise, by:
1.
Setting up a calibration signal
2.
Setting local oscillator phase noise behavior
3.
Setting Trace 1 type to average and initiate a sweep
4.
Turning off calibration signal
5.
Setting Trace 2 type to average and initiate a sweep
6.
Calculating the power difference between Trace 1 and Trace 2, saving the result as Trace 3
Language
C
File name
mxa_phasenoise.c
C#.NET & Visual Stud io 2010
The samples provided are written in C# for Visual Studio 2010 (.NET version 4.5),
1.
Retrieve Screen Images
2.
Poll Method for Operation Complete
3.
SRQ Method for Operation Complete
4.
Phase Noise Trace Math
All the samples use the VISA driver.
The instrument supports multiple simultaneous detectors (for example, peak detector for max hold, sample for
clear and write, and negative peak for min hold).
44