Signal Hound | API Functions
bbSetTg
Set the frequency and amplitude output of a paired tracking generator
bbStatus bbSetTg(int device, double frequency, double amplitude);
Parameters
device Device handle.
frequency Set the frequency, in Hz, of the TG output
amplitude Set the amplitude, in dBm, of the TG output
Description
This function sets the output frequency and amplitude of the tracking generator. This can only be
performed is a tracking generator is paired with a spectrum analyzer and is currently not configured and
initiated for TG sweeps.
Return Values
bbNoError The function returned successfully.
bbDeviceNotOpenErr The device specified is not open.
bbTrackingGeneratorNotFound
A tracking generator was not found to be paired with the device
specified.
bbDeviceNotConfiguredErr The API is currently configured and initiated for tracking generator
sweeps and the tracking generator cannot be controlled at this time.
bbAdjustedParameter The frequency or amplitude was clamped to an upper or lower limit.
bbGetTgFreqAmpl
Retrieve the last set TG configuration
bbStatus bbGetTgFreqAmpl(int device, double *frequency, double *amplitude);
Parameters
device Device handle.
frequency The double variable that frequency points to will contain the last set
frequency of the TG output in Hz.
amplitude The double variable that amplitude points to will contain the last set
amplitude of the TG output in dBm.
Description