LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem running LabVIEW code (.exe) using Runtime engine

Hi!
I have built a small application using LabVIEW 8. Everything works fine when I'm using the FDS.
I have build an exe-file using the LabVIEW builder, the exe-file works great on the FDS computer.
 
I get the  following error messages when I try to run the exe-file on another computer running just
the Runtime-engine (LabVIEW_8.0.1_Runtime_Engine)
.
1. No Supported languages installed!
2. Unable to open resource files.
 
Should I perhaps copy some file to my "build folder" where the exe-file is located?
I must have missed something, could you please assist me.
 
I'm running Windows XP Home (Swedish edition).
LabVIEW 8.
LabVIEW_8.0.1_Runtime_Engine.
 
Thanks in advance!
/Mattias
 
0 Kudos
Message 1 of 15
(9,610 Views)
Some very wild guesses: 😉
 
Does your program need any DAQ drivers?
Did you install the full runtime engine (87MB) or just the short version (24MB)? See the following link for details:
 
What does your program do? Does it possibly contain mathscript?
 
 
0 Kudos
Message 2 of 15
(9,596 Views)

Sorry, I didn't say that I'm running the full runtime engine (87MB).

My code is just a texthandlar (load, search'n'replace in text), no hardware is used.

Any more ideas would be gratefully received.

Regards,

Mattias

0 Kudos
Message 3 of 15
(9,594 Views)
Hi Mattias,

one thing you could do is build an installer, this will (hopefully) install the correct drivers you use, probably you use some lvanlys.dll functions.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 15
(9,591 Views)
Hello,
I have actually the same problem under Linux. I have upgraded to 8.0.1 but the problem is still there.
Have you finally fixed your problem under XP.
Thanks

0 Kudos
Message 5 of 15
(9,462 Views)

I am getting both the

1. No Supported languages installed!
2. Unable to open resource files.
 
I am using LabVIEW 8.2 Base version.
 
I have a User Interface function that allows other uses to access some of our data.
All of my code is written in LabVIEW. I used project to build a DLL for the users to
link their code to. One user is writting his code in C++. We were having problems
getting this to work, so I made a copy of my VI and removed everything except the
parameters that are passed into and returned from the VI. I then rebuilt the DLL.
Remember, the code does nothing other than return to the user. We still had problems
with a system error when we tried to execute his C++ file. I looked at the debug information
that was displayed when the error occured. It made a reference to   lvrt.dll  . I found that
file in "C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\8.2". I copied
file to the folder where my test code was located. That solved the problem with the
system error. Now when we execute the C++ file we get the 2 messages mentioned
above. I did open, with notepad, lvrt.dll. Although It is impossible to see the actual code,
I was able to perform a search and find the 2 messages listed above. This indicates that
something in this DLL is looking for something that it can not find. What I would like to
find out is exactly what it is looking for so that I can make sure that the other user has
it on his computer since he only has the Run-Time Engine installed.
 
Anyway, did anyone ever determine what the problem with this is and how to correct it?
 
Thank you for any serious help you can provide. As I said, the LabVIEW code does not
do anything other than return. So generalized answers about hardware drivers, etc. and
try this or that will not solve the problem.
 
I would actually like to hear from the NI people who created   lvrt.dll   to find out what their
code is looking for or from someone who has figured this out already.
 
Thanks.
0 Kudos
Message 6 of 15
(9,298 Views)

By the way, for the person who will respond with this,

we also have a machine that has the Professional and Application Builder

version on it which is where I ran project and created my DLL.

0 Kudos
Message 7 of 15
(9,293 Views)
Enclosed is a zip file containing the test code we created to determine if we could get this to work. I am using LabVIEW 8.2.
 
Published Data User Interface.vi                    is a shell of the VI code I wrote. The inputs and outputs are the same as in my orginal VI
Published Data User Interface Close.vi         is a shell of the VI code I wrote. The inputs and outputs are the same as in my orginal VI
 
Build DLL.lvproj                                              is the LabVIEW Project file used to build the DLL
 
Build DLL.aliases                                           these are the files generated by Project
Published Data User Interface.aliases
Published Data User Interface.dll
Published Data User Interface.h
Published Data User Interface.ini
Published Data User Interface.lib
 
Example.bat                                                  batch file to build the CPP file. This uses Microsoft Visual C++ 2005 Express Edition which
                                                                      can be downloaded, at no cost, from Microsoft. It is a basic command line compiler/linker.
Example.cpp                                                 test program to determine how the end user can access the DLL
 
 
I am not 100% sure the CPP code will work correctly in regards to passing the correct data. I need to get past the other messages first.
I also have "lvrt.dll" in the zip. The .exe file will get a fatal error if it is not in the folder with the executable.
 
Thanks for any help.
 
0 Kudos
Message 8 of 15
(9,256 Views)
Hello,
 
Looks like it's been a few days since anyone has posted - still seeing the same behavior, any progress?
 
It also looks like there are at least 2 distinct issues here... same error messages, but one happens when porting to a Swedish version of XP, and the other when calling a LabVIEW-built dll from a C++ application.
 
We'll stay high level for now, and work deeper as necessary:
 
For the Swedish OS - any chance you can verify whether or not the issue occurs on a non-Swedish machine?
 
For the C++ app - do you have any potential OS language related issues in your experiments?  I see the same errors with your Example.exe.  The first thing to try would be to build the most trivial application possible.  Also, putting debug statements in your C++ app might help a little, just to know at what point the messages are thrown.
 
If you haven't made progress and this high level chat doesn't help, repost with any additional information and we'll take a closer look!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 9 of 15
(9,179 Views)

Hello,

I have already got the error message (on a LINUX system) :  "Unable to open resource files"  when running an excecutable and it
was simply because the "LabVIEW Data"  directory had not the correct access rights.
On an XP system this directory is located in: "c:\My Documents"

On an other installation of LV8.0 (on XP English edition)  I also got the error message: "No supported Language Installed".
This error has disappear with the installation of LV8.2.

Regards

Francis

0 Kudos
Message 10 of 15
(9,168 Views)