LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error code 21

Hi,

I've built an application in LabVIEW 6.02 and I get the following message when I try to run it.
Error loading VI.
Error code 21: An external soubroutine required for execution could not be found.

I want to run this application on different computers. Some has an Eagle IO-card and some doesn't. The application works fine on the computer the code is written and built. This computer also has the IO-card installed.

The error occurs on a computer that doesn't have a card installed.

I was wondering if the error occurs beacuse there are no drivers or is it something I'm forgetting to do when a build the application.

Can someone please help me with my problem?
0 Kudos
Message 1 of 7
(3,536 Views)
It's probably because it can not find some driver related files (a dll probably). Try to install the driver on the other computer.
Is there in your application any VI specific for that I/O card ? (if that's the case try to go inside those VIs and search for "external" calls)
0 Kudos
Message 2 of 7
(3,535 Views)
The application works fine now. Some required dlls hadn't been copied over to the other computer. Once I copied over those files (no installation required) it worked fine.

Thanks a lot Lab Viewer.
0 Kudos
Message 3 of 7
(3,535 Views)
> I've built an application in LabVIEW 6.02 and I get the following
> message when I try to run it.
> Error loading VI.
> Error code 21: An external soubroutine required for execution could
> not be found.
>
> I want to run this application on different computers. Some has an
> Eagle IO-card and some doesn't. The application works fine on the
> computer the code is written and built. This computer also has the
> IO-card installed.
>
> The error occurs on a computer that doesn't have a card installed.
>
> I was wondering if the error occurs beacuse there are no drivers or is
> it something I'm forgetting to do when a build the application.
>

You definitely need to install the drivers. Your application is dependent
on a driver, and the application builder
doesn't know much about the
installers for drivers and other applications. It will try to help out
by copying DLLs and other files that your app uses, but you need to handle
the drivers.

If this doesn't fix it, look for other drivers or analysis functions that
connect to CINs.

Greg McKaskle
0 Kudos
Message 4 of 7
(3,535 Views)
I hadn't copied over some of the necessary DLLs, once I did that it worked fine.

Thanks a lot for your help Greg.
0 Kudos
Message 5 of 7
(3,535 Views)
How do you know which DLL to copy over. I am having similar problem. Mine said that there is an error loading HP34401A initialize.vi, HP34401A read.vi, and HP34401A close.vi. I can get the .exe file run on the computer that the file was originally made. But now that I want to get it to run on my laptop. I get load error code 21. Thanks
0 Kudos
Message 6 of 7
(3,535 Views)
I might need to be corrected on this, but I think that depending upon
LabVIEW version you are using, you either have to have daqdrv, lvdaq.dll or
actually load NIDAQ 7 in addition to the LV run-time. If you need daqdrv or
lvdaq.dll, the app builder, I thought, would copy these to your build
destination. Daqdrv should be in the same directory as the .exe. Lvdaq.dll
should be in a Data sub-directory. I don't remember which LV version
stopped using daqdrv and started using lvdaq.dll. If you have LV7, the
solution I read about (when I had a similar problem) was to load the NIDAQ 7
driver disk.

"analog" wrote in message
news:506500000005000000A2410100-1068850981000@exchange.ni.com...
> How do you know which DLL to copy over. I am h
aving similar problem.
> Mine said that there is an error loading HP34401A initialize.vi,
> HP34401A read.vi, and HP34401A close.vi. I can get the .exe file run
> on the computer that the file was originally made. But now that I
> want to get it to run on my laptop. I get load error code 21. Thanks
0 Kudos
Message 7 of 7
(3,535 Views)