01-10-2011 10:11 AM
Hi all,
I am trying to control a Hygrosens (www.hygrosens.com) USB-OUT32-IN32-Card (http://shop.hygrosens.com/en/acma-acma-7/acma-acma-3/Digital-Combo-I/O-Card-OUT32-IN32.html) via LabVIEW. There is a Cypress AN2131SC USB controller on it. The guys from Hygrosens shiped a DLL and some documentation with it, but the only thing that works is that I get an error after trying to establish a communication, that my device is not opened.
I already tested the card with software which was also shiped, the card is not the problem.
Attached is my VI and the DLL-File.
Kind regards, Roman
Solved! Go to Solution.
01-12-2011 04:36 AM
Hello RomanD
Since the DLL is a binary, additional informations on return values and parameters are required.
Wrong datatypes and order of parameter can cause the DLL Call to fail.
There is a good Example for working with DLLs shipped with LabVIEW. The Example is called "Call DLL.vi"
I also guess that in order to the connect to the device several function calls have to be executed in a destinct order.
To better understand this a example in another Programming Language might be usefull.
You can copy the Functions to call and their order from the text based example to LabVIEW.
I took a further look at the USB Controller used. There also is a .NET Assembly available for this Controller:
http://www.braintechnology.de/braintechnology/usb1_1dll.html
Regards
Moritz M.
01-12-2011 05:21 AM
Here is some description, which I found on the Hygrosens website (www.hygrosens.com😞
01-12-2011 05:32 AM
Hello Moritz,
thank you very much for your reply! I shortly attached a part from the documentation which I found on the Hygrosens site, which describes how to open the device.
You are right, there are several function calls before it is possible to communicate with the card. These are stated in the previously attached file. If I understand it right, it has to be done like this "OpenDevice" and then "SetDeviceEnabled".
At this moment I am not sure if my parameter declaration is right. I would be very grateful, if you could give me some more hints!
Roman
01-12-2011 05:58 AM
Thanks to Moritz, I have also found this one: http://www.braintechnology.de/downstat18/download.php?file=labview.zip But after downloading it, there is a control missing. Has anybody an idea?
02-01-2011 02:39 AM
I have found some more information:
02-07-2011 10:52 AM
Hello RomanD,
since this seems to be a "normal" DLL you should be able to call it using the Call Library Function Node.
There is a good example shipped with LabVIEW: "Call DLL.vi" To find it simply type DLL in the LabVIEW Example Finder.
Regards
Moritz M.
02-10-2011 02:10 AM
Hello Moritz,
thank you again for your reply! On the "Braintechnology" website I also found a .NET DLL-File (http://www.braintechnology.de/downstat18/download.php?file=net2.0_an21xx_dll_v194.zip). This one is working well with LabVIEW!
05-03-2012 06:38 AM
Hello Roman,
i´m trying the same with the Relais 8in-8out from Hygrogens. Can you upload your .vi file? The .NET DLL file isn´t working.
Regards
Alex