04-11-2016 05:29 AM
Hi people
Seems someone search the same problem years ago.
The microchip in my boad is an ATMEL 1522 TINY45 20SU
Best regards
cpalka
04-11-2016 11:35 AM
Mine appear
As a HID (Human interface device)
http://digital.ni.com/public.nsf/allkb/3C335141B64C038886257141000036F2?OpenDocument
04-18-2016 03:55 PM
Hi people
Can somebody tell me if mine
Has a similar work of this????
If yes I can build a vi with sub-vis created with dll file
cpalka
04-25-2016 01:46 PM
Ok Friends
Seems this post have no solution (starting by me no knowdledge enought to resolve it)
I import the shared library and it creat a lvlib but when I try to run the subvis no one gives live to the relay......
Thanks to all
cpalka
06-30-2016 04:08 PM
Hi friends
I buy a similar usb relay module, but this one connect to the COM port
And with attached example it works perfect.
Best cpalka
02-08-2019 03:49 PM
The Device I have is also a HID device (you can see with usbtreeview)
When I use the delivered c code, I can connect to the device.
If I want to use in LabView, I try to generate LabView code from Shared Library...
The Problem is that LabView does not like the c struct (defined in usb_relay_device.h) :
/*usb relay board info structure*/
struct usb_relay_device_info
{
unsigned char *serial_number;
char *device_path;
usb_relay_device_type type;
usb_relay_device_info* next;
};
When generating LabView Code from Shared Library it ignores functions with the pointer to this struct, especially:
struct usb_relay_device_info *device_info = usb_relay_device_enumerate();
Any idea?
01-29-2020 05:12 PM
Hey!
Just found this thread because I had the same problem. Here's a solution:
you can use the .exe files provided at https://github.com/pkfrom/USBRelay
to communicate via labview with your relay.
I prepared a short example in the attached vi on how to control it easily.
You just need to find out your device serial number (as described in the ReadMe of the github) and have the CommandApp_USBRelay.exe and usb_relay_device.dll in the same folder.
Best,
Alex
10-28-2020 09:00 AM
I struggled with this and finally got it to work. Written in LV2016 and saved to 2012 version.
Two options given, a single action run or a continuous loop. I hope this helps you. 🙂
02-04-2021 07:35 AM
it works, Thank you very much!
02-09-2021 04:17 PM
Hi JCS5920
Since 2016 that I start this topic and for coincidence I receive today a new module usb 2CH relays.
I though I buy a COM port communication, but was once gain HID.
After searching in the forum, I found this topic and I found your solution.
It work with my old 1CH USB relay and works with my new 2CH USB relays (I need to change it for 2 relays)
Many thanks
cpalka