LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
instrumento

Exit LabVIEW from RunTime only

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

Can we have an extra input to the Exit LabVIEW VI that would default to false for compatibilty, that when set to true will only exit if the VI is running under the RunTime (or Embedded) but not under development?

 

Some of our VIs/projects, exit at the end, but while debugging we really don't want to get out of LabVIEW, thus we have to have a construct  checking for the Application property, and a case statement for the current "exit" input

6 Comments
crossrulz
Knight of NI

The Exit LabVIEW function (IMHO) should never be used.  You should let your VI stop normally and conditionally close the front panel.  This way the VI will go out of memory when it is done running and the RTE can shut down when there are no more VIs in memory.

 

Use the Conditional Diagram Disable Structure.  Set one case to be RUNTIME ENGINE == TRUE and shut down your VI there.  The other case should be default with nothing in it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
tst
Knight of NI Knight of NI
Knight of NI

Duplicate of one of the options suggested here - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-an-easily-accessible-way-to-close-an-application/i...


___________________
Try to take over the world!
instrumento
Active Participant

I did search before posting but couldn't find it.  Just Kudos the intial post.

How do I close this one?

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

larall
Member

Do like this

larall_0-1602240561665.png

/LA

 

wiebe@CARYA
Knight of NI

That was mentioned in the first comment.

 

Also mentioned there:

"You should let your VI stop normally and conditionally close the front panel."

 

Because:

"This way the VI will go out of memory when it is done running and the RTE can shut down when there are no more VIs in memory."

 

But Quit LabVIEW also works well. Until it doesn't. Be warned.