This a Digital Input / Output example code for UC-7408-CE / IA261-CE / IA262-CE / V468-CE


All controls of Digital IO must be commanded via DIO1: driver, so you have always use CreateFile to open the driver first.

Use IOCTL_SET_DOUT and IOCTL_GET_DOUT  to set Digital output data and to get the Digital Output data.
Use IOCTL_GET_DIN and IOCTL_GET_DIN_ALL  to get Digital input data.

Don't forget CloseHandle command if your program left DIO control.