LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

installed vi dll on a target PC doesn't return results

I have developed a VI that reads data from a NI-9215A, filters it, FFTs it, and picks out a single peak.  The vi returns two doubles, for frequency and amplitude.  Using Application Builder I created a DLL that I call from the C++ application.  All of this works fine on the Labview development PC.  Next, I need to install the DLL on a different PC where my Visual Studio development environment exists.  So I created an installer to install the DLL on a different PC that doesn't have Labview installed.  In the installer I included the LabView Runtime Environment and the DAQmx driver. 

 

On the target PC, my C++ app seems to access the DLL (pauses the expected length of time to get data back), but then invalid data is always returned -- "0" for the frequency and "-1.$" for the amplitude.  I can remove the DLL and the application throws an exception because it can't find the DLL, so I know it is accessing the DLL.  I just can't get it to return correct data.

 

I have copied the following files from my DLL installation folder on my Labview PC to the executable folder for my C++ application on my Visual Studio PC:

 

DllFileName.aleases

DllFileName.dll

DllFileName.h

DllFileName.ini

DllFileName.lib

data\lvanlys.dll

 

Any idea what I might be missing or why I can't get it to return valid data?  I do have a valid signal going into the 9215A.

0 Kudos
Message 1 of 2
(2,322 Views)

Hi SilverTop,

 

How do you have the NI-9215 connected to the second computer?  Are you using a cDAQ chassis or USB?  If you are using USB, you will also need to include the NI-VISA driver in your installer.   

 

--Starla T. 

0 Kudos
Message 2 of 2
(2,294 Views)