VTI Instruments Corp.
158 EX1629 Command Set
vtex1629_get_gain
FUNCTION PROTOTYPE
ViStatus vtex1629_get_gain (ViSession vi, ViInt32 channel,ViPReal64 gain);
FUNCTION PARAMETERS
vi = contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
channel = an integer input value that specifies the channel for which the gain will be returned. Valid input values: 0
to 47.
gain = a real return value indicating the specified channel’s currently configured gain setting. Valid return values:
1.00, 10.0, and 100.0.
DATA ITEM RESET VALUE
Not applicable to this function.
DESCRIPTION
This function queries and returns the specified channel’s signal conditioning gain.
EXAMPLE
ViSession instrumentHandle;
ViStatus status;
ViReal64 gain;
…
status = vtex1629_get_gain(instrumentHandle, 31, &gain);