12-02-2010 03:43 PM
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.
12-03-2010 03:03 PM
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.