09-23-2014 10:23 AM - edited 09-23-2014 10:24 AM
Hello,
I am unable to control the Relay-Board with Labview. There is a Silabs CP2014 Chip on this board, which controls the relays directly (GPIO). I tried to import the attached DLL in Labview, but how can I create a COM-handle like the manual suggests? Does anybody has some experience with this Chip and the mentioned DLL?
Thanks
09-23-2014 11:01 AM
09-23-2014 01:56 PM
The English version starts at page 4 😉
Unfortunately I dont have any direct serial interface commands. I think the USB-to-Serial-Chip controls the relays with some GPIO-Pins and the only way to set these GPIO-States is trought the dll. Please correct me if its wrong ^^
09-23-2014 02:18 PM
09-23-2014 02:42 PM
I have the 4-channel-version: http://www.conrad.com/ce/en/product/393905/Conrad-relay-board
You are right, the 8-channel-board is controllable with serial-interface-commands, but for all I know, the 4-channel-board has no such interface.
09-23-2014 03:22 PM
I have the 4-channel-version: http://www.conrad.com/ce/en/product/393905/Conrad-relay-board
You are right, the 8-channel-version is controllable with serial-interface-commands, but for all I know, the 4-channel-board has no such interface.
09-23-2014 03:27 PM
09-23-2014 04:33 PM
Yes, the wizard works fine. For each function in the dll I can create a VI. The only probelm is: How can I create the COM-handle for a specific COM-port?
09-23-2014 04:45 PM
09-23-2014 05:17 PM
You are right, the manual states:
HANDLE hMasterCOM = CreateFile ("\\\.\\COM3", GENERIC_READ | GENERIC_WRITE, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, 0;
CloseHandle(hMasterCOM);
hMasterCOM = INVALID_HANDLE_VALUE;
This is Visual C++ and I don't know how to merge this function in LabVIEW.