Phil Duncan Posted August 29, 2008 Report Share Posted August 29, 2008 Hi all, I have been happily developing an application in LV 7.1 (not my preferred version) that needs to be compiled into an executable. I am familiar with the app builder and the executable runs fine on the development machine. It fails to run on another PC that does not have LV installed. I built an installer to ensure the LV71 run-time engine was included. When I run the app I get "An error occured loading VI 'Real Inverse Matrix (LU).vi'. LabVIEW load error code 21.... I get the same message for a bunch of other linear algebra functions that are in the program. I am aware of many other "code 21" posts but they all seem to be related to missing items like DAQ, IMAQ etc. I have checked here and verified that there are no (listed) special requirements for linear algebra functions like the ones I am using. I have tried copying lvanlys.dll, adding the missing VI's as dynamic VI's and support files. No good. I have noted that all the "missing" VI's are in fact included in the VI Settings tab of the app builder as shown below. Is there a magic post that explains a very obvious solution, is there a trick that I have missed or is there some obscure reference to a work around for including linear algebra functions? Your help is, as always, very much appreciated. Cheers & Beers :thumbup: :beer: Quote Link to comment
crelf Posted August 29, 2008 Report Share Posted August 29, 2008 Do you get any more info than just "load error code 21"? Do all of these VIs call a DLL that's missing and/or needs to be registered? You're, of course, not right at the end of the project, right? You've subscribed to the "build early, build often" mantra, right? So this isn't a major timeline issue yet, right? Quote Link to comment
Phil Duncan Posted August 29, 2008 Author Report Share Posted August 29, 2008 QUOTE (crelf @ Aug 29 2008, 12:25 AM) Do you get any more info than just "load error code 21"? Do all of these VIs call a DLL that's missing and/or needs to be registered? Why yes! I get a very helpful explanation. The full text reads like this: "An error occurred loading VI "Real Inverse Matrix (LU).vi". LabVIEW load error code 21: An external subroutine required for execution could not be found. :headbang: I get the same message for 4 other missing vi's that are all from the linear algebra palette. After clicking "OK" for each error message, I get a nice summary of all the missing VI's. There is no mention of unregistered or missing DLL's. This is not the same as DAQ files that must be loaded on the target machine separately, all the troublesome VI's are included in the VI settings tab of the App Builder, so LV knows they are required for the exe. As far as I know these files call the lvanlys.dll, but it is not included in the build and I cannot force it into the build. The lvanlys.dll was put in c:\NI\Shared\LabVIEW Run-Time\7.1 directory on the target PC after installation of the executable (via installer files). QUOTE (crelf @ Aug 29 2008, 12:25 AM) You're, of course, not right at the end of the project, right? You've subscribed to the "build early, build often" mantra, right? So this isn't a major timeline issue yet, right? Yes, sort of, and no. Cheers Quote Link to comment
gmart Posted August 29, 2008 Report Share Posted August 29, 2008 Analysis support is a component of the Run-Time Engine. The installer has an option to include (the default) analysis support. You could verify in the Advanced Installer settings that the "Analyze VIs Support" is checked. You could also try reinstalling just the 7.1 RTE (which I believe you can download from ni.com). Quote Link to comment
crelf Posted August 29, 2008 Report Share Posted August 29, 2008 QUOTE (Phil Duncan @ Aug 28 2008, 12:11 PM) Yes, sort of, and no. QUOTE (Phil Duncan @ Aug 28 2008, 12:11 PM) I get a very helpful explanation. The full text reads like this: "An error occurred loading VI "Real Inverse Matrix (LU).vi". LabVIEW load error code 21: An external subroutine required for execution could not be found. Ahhh - that's important - sis you enable analysis support when you installed the RTE? EDIT: gmart got there before me Quote Link to comment
Phil Duncan Posted August 30, 2008 Author Report Share Posted August 30, 2008 QUOTE (crelf @ Aug 29 2008, 03:01 AM) EDIT: gmart got there before me GRRRRRRRRRR I can't believe I missed that in my checks. Thanks guys, sorry for wasting your time. All is good again. Looks like I'll meet that timeline after all Cheers & Beers :thumbup: :beer: Quote Link to comment
crelf Posted August 30, 2008 Report Share Posted August 30, 2008 QUOTE (Phil Duncan @ Aug 28 2008, 11:02 PM) Cheers & Beers No worries Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.