Chapter 3 127
Programming Examples
Using Markers
Using Markers
This C programming example (HPE4406Markers.c):
• uses the VISA library for input/output, opens a session to a GP-IB
device at address 18 and presets the instrument.
• sets the input to the internal 50 MHz reference source and tunes the
instrument to the signal.
• turns off the active trace and put the instrument in single
measurement mode.
• initiates a spectrum measurement and waits for the operation to
complete.
• puts marker 1 on the peak signal of the average trace and measures
the amplitude.
• puts a noise type marker (marker 2) on the average trace and
measures the amplitude.
• calculates the difference between the peak and the noise floor.
• puts the instrument back in continuous measurement mode and
prints the results.