NIFGEN_ATTR_ARB_GAIN

NI-FGEN C Function

NIFGEN_ATTR_ARB_GAIN

IviFgenArbWfm Attribute

Data Type Access Applies to Coercion High-Level Functions
ViReal64 R/W Channel None niFgen_ConfigureArbWaveform

Description

This channel-based attribute specifies the factor by which the signal generator scales the arbitrary waveform data. When you create arbitrary waveforms, you must first normalize the data points to the range –1.0 to +1.0. Use this attribute to scale the arbitrary waveform to other ranges.

For example, when you set this attribute to 2.0, the output signal ranges from –2.0 V to +2.0 V.

Use this attribute when the NIFGEN_ATTR_OUTPUT_MODE attribute is set to NIFGEN_VAL_OUTPUT_ARB, NIFGEN_VAL_OUTPUT_SCRIPT or NIFGEN_VAL_OUTPUT_SEQ.