LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Load Error Code 21

Hi, I am trying to install a .exe file created using Labview 7.0
I created the file on a Windows 2000 Platform. I am trying to install it onto an XP Platform system.

The installer runs fine and installs the program. However, when I try to run the program I get the following messages:

nilvaiu.dll cannot be found.
DAQmx Write (Digital Bool 1Line 1Point).vi cannout be found.
DAQmx Read (Digital Bool 1Line 1Point).vi cannout be found.
DAQmx Read (Analog 1D DBL 1Chan NSamp).vi cannout be found.

I also get:

LabVIEW load error code 21: An external subroutine required for execution could not be found.


If anyone can help me that would be great, this is getting frustrating.

I tried to manually load "nilvaiu.dll" onto the PC...this worked but then it asked for nimdbgu.dll, loaded that, it asked for NIPALU.dll, loaded that, it asked for nipalut.dll..........

I could be here all day loading .dlls!


Thanks in advance!
Ryan
Ryan

LV 7.1
0 Kudos
Message 1 of 8
(5,912 Views)
Nevermind guys...after taking my stupid pills I discovered my error...man...
Ryan

LV 7.1
0 Kudos
Message 2 of 8
(5,906 Views)
hi ryan
can u tell me what was the reason behind it i am in a similar problem
 
regards
 
0 Kudos
Message 3 of 8
(5,824 Views)
That error code usually means that external code has not been loaded on the deployment machine.  In Ryan's case I believe that it was caused by not installing the DAQ drivers.  Make sure that you install any drivers (DAQ, VISA) and include any support for 3D Graphs or DataSocket if you are using them.  Here is a KB that goes through some of these issues. 

Error 21 While Loading LabVIEW Executable on Target Machine

Hope this helps!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 4 of 8
(5,786 Views)

Dear Andy

thanks a lot for the reply

but why shd i require to load the driver files onto my target machine yes it did work but the question when i making an EXE it should get attached automatically.

 

 

Please explain the need to load driver files

 

Regards

mission_labview

0 Kudos
Message 5 of 8
(5,776 Views)
Hardware device drivers (DAQ, GPIB, USB, video, printers, etc.) are never part of an exe. They must be installed separately. When you create an installer, you can optionally add additional programs such as the DAQmx install but it does not do so automatically. LabVIEW 8 makes the creation of an install CD with all drivers much easier.
0 Kudos
Message 6 of 8
(5,767 Views)

Hi Dennis

Thanks for the quick reply.Well so u mean to say if i try adding the DAQmx installer along with the program installer then i may get a solution to my problem.

 

When i load the device driver what do i do to install only DAQ card drivers and not all the device drivers.

I have Labview 7.1 PDS and we may get the upgrade soon

Also what if i use only the new DAQmx 8 with the earlier program will it work??

Thanks in advance

mission_labview

 

0 Kudos
Message 7 of 8
(5,759 Views)
There's a KnowledgeBase article here on including other installers.
0 Kudos
Message 8 of 8
(5,751 Views)