08-22-2017 05:04 AM
Hi,
I am using LabVIEW 2016.
I created an application to test the continuity of 6 wire.
This application needs to be used in assembly so I installed a run time environment on another PC.
The application works fine in my PC. When I try to use in on the other PC where I have installed run time alone the application doesn't work.
The error is not displayed as well.
I have attached the run time vi and the main application.
Any suggestion how I can rectify this error ? Will I be able to debug during rum time?
In the application builder I added only the main application to the start up vi section. Do i need to include all the sub vi and type def on the always include section ?
08-22-2017 05:13 AM - edited 08-22-2017 05:14 AM
All VI's that are 'hard' linked will be included, only Dynamic calls need manual addition in the project.
I can't open your code, but if you're using paths, know that the .exe adds a directory level.
Did you install the 2016 runtime? Runtimes must match version in LV.
/Y
08-22-2017 05:25 AM
yes the run time and the LV are of same version and 32 bit.
I have attached the zip file which includes .exe file.
Any idea about debugging on the run time ?
08-22-2017 07:33 AM
Do you get any error message, or it doesn't do what you expected?
/Y
08-22-2017 07:41 AM
I didn't get any error message.
when I run the app on the PC installed with run time the app doesn't run.
When I use the same app as .exe and if I run in the PC installed with labview developer environment it works fine.
08-22-2017 08:51 AM
@VikashKumar23 wrote:
I didn't get any error message.
when I run the app on the PC installed with run time the app doesn't run.
When I use the same app as .exe and if I run in the PC installed with labview developer environment it works fine.
How do you know that it doesn't run?
Does it open?
Are data missing?
What is on the screen?
08-24-2017 08:32 AM
Hi,
I resolved it by myself.
I read some data from text file and the reason it was not working on the other PC is, that text file was missing.
For some reason my error out didn't display the error that there is no text file to read.
Thanks !!!
08-24-2017 08:44 AM
@VikashKumar23 wrote:
Hi,
I resolved it by myself.
I read some data from text file and the reason it was not working on the other PC is, that text file was missing.
For some reason my error out didn't display the error that there is no text file to read.
Thanks !!!
It's no mystery why no errors are displayed. In an executable automatic error handling is turned off. If you don't explicitly handle errors, they are swallowed. Learn how to handle errors in LabVIEW. Don't rely on the automatic pop-up windows to tell you what is going on.
(The lack of error reporting in an executable also hints at far more basic poor LabVIEW coding practices; it's advisable that you make use of the training links included on the main page of this forum.)