05-25-2006 11:33 PM
I want to use the following code to open a device and return a HANDLE. How do I program my code to do this with a CIN. I did manage to write a wrapper DLL for the same device and that is working fine, but I trying to do the same with a CIN.
HANDLE PortOpen(VOID)
{
hPort = CreateFile ("\\\\.\\SDCI0\\0",
GENERIC_READ | GENERIC_WRITE,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
return hPort;
}
Please note I'm a beginner, unfortunately the explanation in the Labview documents is not clear enough for me.
05-26-2006 03:46 PM
05-28-2006 11:31 PM
Chris,
Thank you for the info. I have been using CLFN and its working ok. The problem I have is that I’m fairly new to C++ and using advance functions in Labview (Still exploring all options). The previous hardware I used had a DLL created by the manufacturer, but for the current interface I had to write a wrapper (my first attempt). The reason I wanted to try a CIN is to write each function e.g. OpenPort, ConfigPort, RxData, and ClosePort as separate nodes.
CEE
05-30-2006 10:50 AM - edited 05-30-2006 10:50 AM
Message Edited by Chris_C. on 05-30-2006 10:55 AM