NIRfsa Namespace

Table of Contents

RfsaDriverUtility.GetScalingCoefficients Method

  • Updated2025-07-17
  • 1 minute(s) read
RfsaDriverUtility.GetScalingCoefficients Method

RfsaDriverUtilityGetScalingCoefficients Method

Returns coefficients that can be used to convert unscaled data to scaled I/Q data.

Namespace: NationalInstruments.ModularInstruments.NIRfsa
Assembly: NationalInstruments.ModularInstruments.NIRfsa.Fx45 (in NationalInstruments.ModularInstruments.NIRfsa.Fx45.dll) Version: 2025

Syntax

public RfsaCoefficientInfo[] GetScalingCoefficients()
Public Function GetScalingCoefficients As RfsaCoefficientInfo()

Return Value

RfsaCoefficientInfo
Returns an object of type RfsaCoefficientInfo.

Exceptions

ExceptionCondition
ObjectDisposedException The GetScalingCoefficients method was accessed after the associated NIRfsa object was disposed.

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.
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.

See Also

Log in to get a better experience