I8026W_Readaogainoffset - ICP DAS USA I-8026W Manual

Multifunction i/o module
Table of Contents

Advertisement

3.4. i8026W_ReadAOGainOffset

This function is used to read the gain and offset values for each output type set for a specified
Analog Output channel.
Prototype
void i8026W_ReadAOGainOffset
(
int slot, int ch, int gain, unsigned short* gainValue, short* offsetValue
);
Parameters
slot: specifies the slot number (1 ~ 8)
ch: specifies the Analog Output channel number (0 ~ 1)
gain: specifies the input type (0 - 4), where:
0: +/-10 V, 1: +/-5 V, 2: +/-2.5 V, 3: +/-1.25 V, 4: +/-20 mA
*gainValue: [Output] the gain value for the Analog Output range
*offsetValue: [Output] the offset value for the Analog Output range
Return Values
None
Example
[C]
int slot=1; unsigned short gVal=0; short oVal=0;
Open_Slot(slot);
for(ch=0;ch<2;ch++)
{
i8026W_ReadGainOffset(slot,ch,gain,&gVal,&oVal);
printf("\nThe Gain and Offset values for the Calibration are:
Gain=%u; Offset=%d", gVal, oVal);
}
I-8026W API User Manual, v1.0.1, June 2015
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: service@icpdas.com
3-18

Advertisement

Table of Contents
loading

Table of Contents