I8026W_Writedobit - ICP DAS USA I-8026W Manual

Multifunction i/o module
Table of Contents

Advertisement

3.10. i8026W_WriteDOBit

This function is used to set a specific Digital Output channel on the I-8026W module ON or OFF.
Prototype
short i8026W_WriteDOBit(int slot, int ch, int bitStatus);
Parameters
slot: specifies the slot number (1 ~ 8)
ch: specifies the Digital Output channel number (0 ~ 1)
bitVal: specifies the status of the digital output, where:
0: OFF
1: ON
Return Values
0 = No Error
For other return values, see the Error Codes in Appendix A.
Example
[C]
int slot,ch, bitVal;
slot = 1;
ch = 0;
bitVal =1;
Open_Slot(slot);
i8026W_WriteDOBit (slot,ch, bitVal);
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-25

Advertisement

Table of Contents
loading

Table of Contents