I8026W_Readbackaohex - ICP DAS USA I-8026W Manual

Multifunction i/o module
Table of Contents

Advertisement

3.8. i8026W_ReadbackAOHex

This function is used to read the calibrated output value from a single specified Analog Output
channel in hexadecimal format.
Prototype
short i8026W_ReadbackAOHex(int slot, int ch, short* hVal);
Parameters
slot: specifies the slot number (1 ~ 8)
ch: specifies the Analog Output channel number (0 ~ 2)
*hVal: [Output] the value read from memory that written to the module
Return Values
0 = No Error
For other return values, see the Error Codes in Appendix A.
Example
[C]
int slot, ch;
short hVal=0;
slot 1=1;
Open_Slot(slot);
for(ch=0;ch<2;ch++)
{
fVal = i8026W_ReadbackAOHex (slot, ch);
printf("\n[%02d]= [ %04X ]",ch, hVal);
}
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-23

Advertisement

Table of Contents
loading

Table of Contents