GetScalingCoefficients()
- Updated2025-10-14
- 1 minute(s) read
Returns coefficients that can be used to convert unscaled data to scaled I/Q data.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsa
public RfsaCoefficientInfo[] GetScalingCoefficients()
Remarks
Acquired data may be unscaled when sent by a peer-to-peer stream or fetched as unscaled data. Use this method to obtain RfsaCoefficientInfo structures in the array that provides gain and offset values you can use to scale this data into the actual I/Q values. The coefficientInfo array returns one element for each channel specified in the channelList parameter. The element order matches the order specified by the channelList parameter. To get the actual I/Q values, scale the unscaled data from an acquisition by multiplying it by the gain value of the appropriate coefficientInfo element, and then add the offset from the same element.
Note
The coefficients are calculated by NI-RFSA for the current configuration of the device, so they are only valid for acquisitions obtained with the same device configuration. This method returns the required size in the numberOfCoefficientSets parameter.
Returns
Returns an object of type RfsaCoefficientInfo.
Exceptions
| Type | Description |
|---|---|
| System.ObjectDisposedException | The GetScalingCoefficients method was accessed after the associated NIRfsa object was disposed. |