E1K_DO_SetSafeValues_W
This function code is used to set safe values of contiguous D/O channels.
C/C++
int E1K_DO_SetSafeValues_W( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD * wValue);
Visual Basic
Declare Function E1K_DO_SetSafeValues_W Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, ByVal nValue As Integer) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytStartChannel |
Specifies the starting channel. |
bytCount |
The number of channels to be set. |
wValue |
A pointer that stores the safe value of contiguous D/O channels; each word holds one channel value. A word value of 0 represents the digital output status of the start channel. A word value of 1 represents the status of the second digital output channel. The values of the unused bits are random. 0: OFF 1: ON 2: Hold Last |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |