
Function calls
USERDATA_GetData () Fetches the latest IQ data using a traditional pull method.
Declaration: ReturnStatus USERDATA_GetData(IQDataPtr data, size_t size, size_t
&startofBlockSample, bool &streamOverload, double &sampleRate, double
¢erFreq);
Parameters:
data IQDataPtr structure. Provides the IQ pair data block.
size size_t of the number of samples in the IQ pair data block.
startofBlockSample size_t sample number of the first sample in IQ data block.
streamOverload bool. True indicates an IQ data block was missed. False indicates no skipped
IQ data block.
sampleRate double of the sample rate for the current acquisition.
centerFreq double of the center frequency for the current acquisition.
Return values:
noError The function completed successfully.
errorBufferTooSmall The buffer size specified is too small.
errorBufferTooLarge The buffer size specified is too large.
USERDATA_FindData () Searches for the sample number passed to it in the API’s local circular buffer
and returns a data set containing the requested sample, if it can be found.
Declaration: ReturnStatus USERDATA_FindData(IQDataPtr data, size_t size, size_t
findSample, size_t &startofBlockSample, bool &sreamOverlaod, double
&sampleRate, double ¢erFreq);
Parameters:
dataIQDataPtr structure. Provides the IQ pair data block.
sizesize_t of the number of samples in the IQ pair data block.
findSample —
startofBlockSample size_t sample number of the first sample in the IQ data block.
streamOverload bool. True indicates an IQ data block was missed. False indicates no skipped
IQ data block.
sampleRate double of the sample rate for the current acquisition.
centerFreq double of the center frequency for the current acquisition.
Return values:
noError The function completed successfully.
errorInvalidSize The function parameter size is 0.
errorInvalidDataRate The function parameter sampleRate is 0 or negative.
errorStaleTrigger The function failed to acquire the trigger since the data has already passed.
errorTimedOut The function timed out while looking for a trigger.
unknownError The function received an unknown error.
DRAFT—23 August 2018
RSA7100A API Programmer Manual 3