LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

runtime error code 21

I created an executable file of my main VI to run on my laptop. When I tried to run it, I get error code 21: An external subroutine required for execution could not be found. I have read about two possible solutions for this 1. Install the drivers on the laptop, 2. copy the dll files? The drivers are install in the laptop when I installed the runtime engine, and I don't know how you would copy the dll files. Does anyone know how to fix this? Thanks
0 Kudos
Message 1 of 5
(3,651 Views)
Check that the installation installed everything in the /program
files/national
instruments/shared/LabVIEW Run-Time/7.0 (or 6.0 or 6.1, etc.) directory on
your hard
drive, including the subdirectories. For your .exe to run, these files can
be in the windows directory or in the same directory as your .exe.

"analog" wrote in message
news:50650000000800000027B20000-1068850981000@exchange.ni.com...
> I created an executable file of my main VI to run on my laptop. When
> I tried to run it, I get error code 21: An external subroutine
> required for execution could not be found. I have read about two
> possible solutions for this 1. Install the drivers on the laptop, 2.
> copy the dll files? The drivers are install in the laptop when I
> installed the runtim
e engine, and I don't know how you would copy the
> dll files. Does anyone know how to fix this? Thanks
0 Kudos
Message 2 of 5
(3,651 Views)
Hi,

How do you know if everything is installed. I see 7 DLL in this directory, and I am still receiving the same error code when I try to run my application. Thanks.
0 Kudos
Message 3 of 5
(3,651 Views)
I think DD meant to make sure all the drivers installed correctly.

Sometimes it is difficult to narrow down what is missing, what I would suggest is to create some simple LV exes, which use the various portions of your Main application. Then when you load them you can see which portion is missing. Once we know what is missing we can help you fix the issue.

In addition if you are using any customer dlls make sure they are in the folder with the exe, or in the system32 folder.
0 Kudos
Message 4 of 5
(3,651 Views)
Are you using any of the data acquisition pallette? Even if you are not using it on your laptop, this could cause a problem. These VI's are not included in your build anymore, you need to add them when you install a daqcard or you can simply install them anyway. Just something to check.
0 Kudos
Message 5 of 5
(3,651 Views)