LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2009 CIN External Code Not Present

HI,

 

I have a VI that runs in LabVIEW 2009. When it is compiled, it runs on my development machine. The compiled executable does not run on computers that only the LabVIEW Run-Time engine. The error I get is "External Code Not Present". No error Number. The VI worked with LabVIEW 7.1 through 8.6. How do I figure out what external code is missing?

 

The VI Sends Files to the Windows Recycle Bin. It uses a CIN that calls the SHFileOperation Function. I’ve tried re-compiling and re-linking the CIN.

 

Windows XP SP3
LabVIEW 2009
Visual Studio 2003

 

Thanks,
Richard

Download All
0 Kudos
Message 1 of 13
(4,578 Views)

Hello,


Are you sure that you have the LabVIEW 2009 runtime engine installed on this machine?

 

National Instruments
0 Kudos
Message 2 of 13
(4,549 Views)

I am sure I have the LabVIEW 2009 Run-Time Engine installed. I can compile other projects with LabVIEW 2009 and they run on this machine.

 

Thanks,

Richard

0 Kudos
Message 3 of 13
(4,536 Views)
Has this been resolved? We're experiencing the same problem.
0 Kudos
Message 4 of 13
(4,431 Views)

Additional information -- I noticed that changing my CIN to non-reentrant "fixed" the problem.

 

0 Kudos
Message 5 of 13
(4,386 Views)

Hello,

 

Does it help if you include the external code in the additional files section when you create the .exe?

 

Thanks,

 

Anna K.

National Instruments
0 Kudos
Message 6 of 13
(4,368 Views)
It seems my problem is a Microsoft C dependency. I'm sure it’s a missing DLL, but I'm having a lot of trouble tracking it down. The MS VC redistributable runtime does not install the missing components. If I install MS Visual C++ 2008 on my target machine the compiled LV code with the CIN runs.  Thanks,Richard
0 Kudos
Message 7 of 13
(4,364 Views)

Anna,

 

I thought the same thing. I did place the dll, as well as the lsb in the additional files folder -- same result.  

0 Kudos
Message 8 of 13
(4,351 Views)

Hello,

 

You could try the same thing as Machanix, it may be a dependency with some .dll that is installed on your Dev machine and not the target machine. See if the external code runs on your target machine on its own, or if it complains that something is missing.

 

Thanks,

Anna K

National Instruments
0 Kudos
Message 9 of 13
(4,317 Views)
Hello Anna K I never figured out what the dependency is. If I install MS Visual C++ 2008 Express on my target computer, my CIN works. If I have LabVIEW 2009 Run-Time and VC 2008 redistributables installed, the CIN code generates an "External Code Not Present" error.  Is there a tutorial for building a CIN with MS Visual C++ 2008 Express? Even the simplest CIN built with MS Visual C++ 2008 Express generates this error. The project files where imported from Visual Studio 2003. Are there any configuration changes that need to be made? Or some way to track down what the dependency is? Thanks,Richard
0 Kudos
Message 10 of 13
(4,273 Views)