01-10-2011 10:11 AM
I am trying to control a Hygrosens (www.hygrosens.com) USB-OUT32-IN32-Card (http://shop.hygrosens.com/en/acma-acma-7/acma-acma
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
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:
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
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!
01-12-2011 05:58 AM
Thanks to Moritz, I have also found this one: http://www.braintechnology.de/downstat18/download.
02-01-2011 02:39 AM
I have found some more information:
02-07-2011 10:52 AM
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.
02-10-2011 02:10 AM
thank you again for your reply! On the "Braintechnology" website I also found a .NET DLL-File (http://www.braintechnology.de/downstat18/download.