Showing results for 
Search instead for 
Did you mean: 

How to write a VI for a DLL file for data acquisition

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.

0 Kudos
Message 1 of 3

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?

0 Kudos
Message 2 of 3

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..

Import DLL.png


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.

CLA CTAChampion
Subscribe to our Test Automation user group: UK Test Automation Group
Message 3 of 3