LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a DLL that contains DAQ card operations?

Hi,

I'm trying to make a DLL that contains DAQ card operations. For now,
I have only one DAQ VI inside my DLL that simply sets a channel to 1 or 0.
But when I load this DLL from Visual C++ application, the LVDLLStatus function
returns error code 1003 indicating that the VI is not executable.

I have tested this VI on LabView and it is running correctly. Also in the DLL, I have
another VI that does simple addition of two numbers, even this is not working when
the other VI is included in the DLL. If I remove the VI that is operating the DAQ card
and build the DLL again, the addition function works correctly when called from VC++.

I have also tested the whole DLL, with both VIs built inside, from LabView and it is
working correctly.

Does anyone have similar experiences? Do I need some extra configurations to get
this working?

Thanks.
0 Kudos
Message 1 of 3
(2,238 Views)
Some additional information.

The PC that I'm using to test this VC++ application is the same one
that I use for the LV development.

Could this be an path issue? When the DLL is executed outside
LV environment, it can't find the subVIs needed for the digital I/O?
0 Kudos
Message 2 of 3
(2,231 Views)
Nevermind, I got it working Smiley Very Happy

I needed to copy the data folder from my build directory in to the
directory where my app exists. The data folder contains lvdaq.dll
that is needed for DAQ operations.

If anyone knows a better solutions, please let me know.

Thanks.
0 Kudos
Message 3 of 3
(2,225 Views)