I would like to use 8 digital inputs (port 0) and 8 digital outputs (port 1).
I configured the registry that way:
OK -> reg enum value \
00 "DataInit"=hex:ff,00 \
01 "DataDir"=hex:00,ff \
02 "UseAsIO"=hex:ff,ff \
03 "Prefix"=string:DIO \
04 "Dll"=string:FS_DIGIO.dll \
05 "Order"=dword:151 \
06 "Index"=dword:1 \
07 "Ioctl"=dword:4 \
08 "Port"=dword:1 \
09 "FriendlyName"=string:Digital I/O driver \
But when I try to open the digital I/O handle I get an invalid handle:
m_hDIO=CreateFile(_T("DIO0:"),GENERIC_READ|GENERIC_WRITE,0,NULL, OPEN_EXISTING,0,NULL);
This statement always gets an INVALID_HANDLE_VALUE.
I suggest the digital I/O driver is not running, because I found no process on the armStoneA8 which has loaded the FS_DIGIO.DLL.
What must I do to get a valid handle for the digital I/O?