I8026W_Writedo - ICP DAS USA I-8026W Manual

Multifunction i/o module
Table of Contents

Advertisement

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
0
1
2
3
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);
I-8026W API User Manual, v1.0.1, June 2015
Copyright © 2015 ICP DAS Co., Ltd. All Rights Reserved.
CH0
CH1
OFF
OFF
ON
OFF
OFF
ON
ON
ON
E-mail: service@icpdas.com
3-24

Advertisement

Table of Contents
loading

Table of Contents