I-9048/I-8048W Linux API Reference, v 1.0.2 E-mail: [email protected]
31
3.3.
I8048W_DI_Ch
This function read the single-channel DI status of the
I-8048W /
I-9048 module.
Syntax
【
C
】
int I8048W_DI_Ch(
int
slot,
int
DI_Channel,
);
Parameters
slot
[in] Specifies the slot number (1 - 8).
DI_Channel
[in] The single channel of the I-9048 module to be read.
Return Value
1: DI ON
0: DI OFF
Example
[C]
int DI=0;
int channel = 0;
int slot = 0;
DI = I8048W_DI_Ch(slot, channel);