I-8026W API User Manual, v1.0.1, June 2015
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
3-24
3.9.
i8026W_WriteDO
This function is used to write the Digital Output value to the I-8026W module.
Prototype
short i8026W_WriteDO(int slot, short hData);
Parameters
slot: specifies the slot number (1 ~ 8)
hData: the Digital Output value (0 ~ 3), as per the table below
Output Value
CH0
CH1
0
OFF
OFF
1
ON
OFF
2
OFF
ON
3
ON
ON
Return Values
0 = No Error
For other return values, see the Error Codes in Appendix A.
Example
[C]
int slot,ch,gain;
short hVal=3;
slot = 1;
Open_Slot(slot);
i8026W_WriteDO (slot, hVal);