![]() |
SP API
|
I/Q sweep list measurements perform frequency hopping I/Q captures at a list of user configured frequencies and capture sizes. Data is returned as I/Q samples.
For a list of all examples, please see the examples/ folder in the SDK.
I/Q sweep lists are finite length I/Q acquisitions across a user supplied list of frequencies. Lists of up to 1000 frequencies can be provided. At each frequency, the reference level and number of samples to be collected must be configured. One measurement/list is referred to as a “sweep” and iterates through all configured frequency steps. Several sweeps can be queued to maintain maximum throughput.
I/Q samples are collected at the device's native sample rate, 61.44MS/s. Unlike I/Q streaming, software filtering is not performed prior to returning the data to the user. The LO feedthrough of the instrument is present in the rolloff region of the returned bandwidth and depending on the application a small filter may need to be applied to remove this.
On average, the SP will switch frequencies at ~135us. The switch time is not deterministic and will depend on a number of factors.
At each frequency, a timestamp is provided indicating the nanoseconds since epoch for the first I/Q sample at that frequency. If the internal GPS is locked, this time is GPS time, If GPS is not locked, system time is provided. Regardless of GPS lock, relative accuracy of timestamps between steps are highly accurate through use of internal device counters.
Once a sweep list is configured, it can be performed as a single atomic sweep using the spIQSweepListGetSweep function, or it can be queued using the asynchronous functions, spIQSweepListStartSweep/spIQSweepListFinishSweep. Queuing the sweeps provides two major advantages, minimize blind time between the end of one sweep and the start of the next, and the ability to do other tasks while waiting for the sweeps to complete. Up to 16 sweeps can be queued. It is not possible to queue sweeps with different configurations.
While the user can specify an arbitrary number of samples at each frequency, the SP device is internally limited to multiples of 2048 samples. For this reason, it is optimum to round up to the next multiple of 2048, which will not affect acquisition speed and reduce the number samples discarded. Maximum sweep speed occurs when the number of samples at each frqeuency is <= 2048.
One use case where I/Q sweep lists are preferred to I/Q streaming for single frequency measurements is when you know in advance how many I/Q samples you want to collect at that frequency. Using I/Q sweep lists to acquire these samples has less overhead than using I/Q streaming. Starting and stopping the I/Q stream can take tens of milliseconds, where as the overhead associated with performing a single I/Q sweep list acquisition is 1-5 milliseconds.
See I/Q Acquisiton for more information.