I8026W_Readbackao - ICP DAS USA I-8026W Manual

Multifunction i/o module
Table of Contents

Advertisement

3.7. i8026W_ReadbackAO

This function is used to read the calibrated output value from a single specified Analog Output
channel floating point.
Prototype
short float i8026W_ReadbackAO(int slot, int ch, float* fVal);
Parameters
slot: specifies the slot number (1 ~ 8)
ch: specifies the Analog Output channel number (0 ~ 2)
*fVal: [Output] the value read from memory that is 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;
float fVal=0.0;
slot = 1;
Open_Slot(slot);
for(ch=0;ch<6;ch++)
{
i8026W_ReadbackAO( slot, ch, &fVal);
printf("\n[%02d]= [ %05.4f ]",ch,fVal);
}
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-22

Advertisement

Table of Contents
loading

Table of Contents