
46
Program Samples
Programing Samples
C, C++
The samples provided are console applications written in C, but these should also be compilable by most C++
compilers.
1.
Serial Poll for Operation Complete
2.
Trace Detector/Couple Markers
These samples use the VISA driver.
Serial Poll for Operation Complete
Trace Detector/Couple Markers
Function
Serial Poll for Sweep Complete
Description
This example demonstrates how to:
1. Modify the timeout value
2. Initiate a sweep
3. Poll the instrument to determine when the operation is complete
4. Query and report the sweep result
Language
C
File name
mxa_sweep.c
Function
Trace Detector/Couple Markers
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
The instrument supports multiple simultaneous detectors (for example, peak
detector for max hold, sample for clear and write, and negative peak for min
hold).
Language
C
File name
mxa_tracecouple.c