LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LavbVIEW Runtime .exe issue

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 ?

 

 

Download All
0 Kudos
Message 1 of 8
(3,763 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 8
(3,753 Views)

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 ? 

0 Kudos
Message 3 of 8
(3,741 Views)

Do you get any error message, or it doesn't do what you expected?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 8
(3,713 Views)

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. 

0 Kudos
Message 5 of 8
(3,706 Views)

@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?

0 Kudos
Message 6 of 8
(3,697 Views)

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 !!!

0 Kudos
Message 7 of 8
(3,675 Views)

@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.)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 8
(3,669 Views)