01-18-2012 06:30 AM
Dear All,
I have a DAQ board for which a dll file is given. I want to use this dll file for data acquisition via LABVIEW. But I dont know where to start from.
Can anyone please guide on how to write a VI for a DLL file having read write and store function. This dll is to read the status of the analog inputs.
I am using Labview 2009
a demo VI or document will be of great help.
Thanks in advance.
01-18-2012 07:57 AM
There is a full section in the LabVIEW Help on calling code from text-based languages. Did you look?
There is a complete example that ships with LabVIEW that shows you how to call a DLL. Did you look?
There are numerous examples on this site on calling DLLs. Did you look?
There have been tons of posts on this forum on calling DLLs. Did you look?
01-18-2012 08:02 AM
You have two options:
1. If you have the header file which defines the functions, your life is quite easy. Use the Tools>>Import>>Shared dll..
This wizard will create all the common functions listed in the dll & header files.
2. If you dont have the header file, you will need to know the function parameters and return values (hopefully from the documentation). You can use call library function node to call the dll.
Hope this helps.