W406-CE User’s Manual
Application Development
Closes the DIO handle.
void mxdio_stop(HANDLE hDIO);
Inputs:
<hDIO> the DIO handle
Return Values:
None
Remark:
Sets one of the DOUT outputs.
int mxdio_set_dout(HANDLE hDIO, unsigned int port, unsigned int data);
Inputs:
<hDIO> the DIO handle
<port> the port index, from 0 to 3 mapping to DO0~DO3
<data> 1: HIGH, 0: LOW
Return Values:
0 on success, otherwise, the function fails
Remark:
Gets one of the DIN inputs.
int mxdio_get_din(HANDLE hDIO, unsigned int port);
Inputs:
<hDIO> the DIO handle
<port> the port index, from 0 to 3 mapping to DI0~DI3
Return Values:
1 indicates HIGH, 0 indicates LOW
Remark:
Gets one of DOUT outputs.
int mxdio_get_dout(HANDLE handle_dio,unsigned int port);
Inputs:
<hDIO> the DIO handle
<port> the port index, from 0 to 3 mapping to DO0~DO3
Return Values:
1 indicates HIGH, 0 indicates LOW
Remark:
B-9