44Program SamplesN9060A Spectrum Analyzer Mode Programing SamplesPhase Noise Trace MathC#.NET & Visual Stud io 2010The samples provided are written in C# for Visual Studio 2010 (.NET version 4.5),1. Retrieve Screen Images2. Poll Method for Operation Complete3. SRQ Method for Operation Complete4. Phase Noise Trace MathAll the samples use the VISA driver.Description This example demonstrates how to:1. Set various types of trace (Max Hold, Clear Write, Min Hold)2. Relate markers to specified traces3. Couple markersNOTE The instrument supports multiple simultaneous detectors (for example, peak detector for max hold, sample forclear and write, and negative peak for min hold).Language CFile name mxa_tracecouple.cFunction Phase Noise Trace Math CalculationDescription This example demonstrates how to remove instrument noise from phase noise, by:1. Setting up a calibration signal2. Setting local oscillator phase noise behavior3. Setting Trace 1 type to average and initiate a sweep4. Turning off calibration signal5. Setting Trace 2 type to average and initiate a sweep6. Calculating the power difference between Trace 1 and Trace 2, saving the result as Trace 3Language CFile name mxa_phasenoise.c