S530 Parametric Test Systems Frequency Analysis Option Manual
Section 3: Software Reference
S530-923-01 Rev. A / January 2014
3-7
Control routines
The provided control routines are C-language commands. Using the control routines provides lower-
level (and more direct) control of the scope card compared to using the measurement routines. The
provided control routines are included to allow you to build custom routines (if desired).
Nine different commands for instrument setup and acquisition of data are provided in the control
library:
freq_init
freq_setup
freq_measure
freq_measure_next
freq_detect_peaks
freq_selftest
freq_close
freq_init
Purpose
:
The
freq_init
command initializes the scope card to its default state.
Format
:
int freq_init();
Parameters
:
None
Returns
:
This command returns a 1, if executed without error; otherwise, a negative
number is returned to indicate an error.
Remarks
:
The scope card must be initialized before using any other scope card control
commands.
Example
:
double freq;
double ampltd;
.
.
.
Status1 = freq_init( );
Status2 = freq_setup(20e6, 850e6, 1e6);
Status3 = freq_measure(&freq, &ltd);