Solution
Unscaled
niRFSA Fetch IQ fetches unscaled ADC data from the RFSA device. It has compact data representation, but, as a trade off, does not provide scaling and timestamping. You can use
wfm info to recreate amplitude, sampling rate and timestamp values.
Wfm info contains:
absolute timestamp | returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. |
relative timestamp | returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference trigger location. |
dt | returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. |
actual samples read | returns an integer representing the number of samples in the waveform. |
offset | returns the offset to scale data, (b), in mx + b form. |
gain | returns the gain to scale data, (m), in mx + b form. |
The formula below can be used to scale the received data:
y = mx + b,
where y - scaled amplitude, x - unscaled I16 value, m and b - gain and offset components of wfm info respectively.