LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem running code from PXI-8187 using Real-Time 7.1.1

I am attempting to control a PXI-8187 using LabVIEW Real-Time 7.1.1 and DAQmx 7.5. The machine I am using to download the code to the controller is a brand new Windows 7 computer (I realise that 7.1.1 is not supported for use on Windows 7 machines).

 

I have installed NI-VISA 3.2 and am using the LabVIEW 7.1.1 development package. The FieldPoint 4.1 software has also been installed. This software has no issues downloading code on the various compact field points we use in the system. The controller, and all attached cards, are visible in MAX from the Windows 7 computer. All software versions on the host computer match the installed software on the PXI-8187 with the following execptions: "Watchdog 2.1.2", "Serial RT 2.5.4" and "IrDa RT 1.0.1" are all installed on the controller but not on the host computer (Windows 7) according to MAX.

 

The code I am attempting do download to the controller is known to work, as it can be run from the legacy operators computer (running XP).

 

The error I encounter when attempting to run any code on the 8187 is the following:

 

"Error Loading "nilvaiu.dll" A dynamic link library (dll) initialization routine failed."

 

I have located two locations that the "nilvaiu.dll" resides. The first is in the sysWOW64 subfolder of the Windows folder. The other is located in a subfolder of the "RT Images" folder located in the National Instruments folder.

 

Is this initialization routine failure due to running the code on a Windows 7 x64 machine as opposed to a Windows XP x86? 

 

If this is not the cause, what are possible solutions to resolve this issue.

 

Thanks,

 

Chris

0 Kudos
Message 1 of 4
(2,525 Views)

Are you absolutely SURE NI-DAQmx is installed on the target?  The nilvaiu.dll is a core component of NI-DAQmx, and if you haven't specifically installed it onto the target you will not be able to load/run VIs written with DAQmx functions.  

 

You need to use NI-MAX to install DAQmx to the controller first before deploying code to the controller.

 

-Danny

0 Kudos
Message 2 of 4
(2,509 Views)

@Texas_Diaz wrote:

Are you absolutely SURE NI-DAQmx is installed on the target? 


Yes, I am 100% sure that DAQmx is installed on the controller and both PCs used in the test. The legacy computer (Windows XP x86) can download and run the code on the controller without a problem. When the new computer (Windows 7 x64) attempts to download and run the same code on the controller the aforementioned error occurs.

 

To the best of my knowledge both the legacy and new computers have the same versions of LabVIEW and drivers installed.

 

Also, I was able to locate the DLL on the new computer, as I mentioned before; however, it generates that error whenever LabVIEW attempts to call it or load it into memory.

0 Kudos
Message 3 of 4
(2,503 Views)

Is the nilvaiu.dll present on the target?  It will generally be under the /ni-rt/system directory on the 8187.  If it's present on the target, then you likely have an error in a dependency of nilvaiu.dll and that's harder to determine.

 

-Danny

0 Kudos
Message 4 of 4
(2,497 Views)