LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving LabVIEW before "Quit LabVIEW" vi executes

Solved!
Go to solution

Hello,

 

I have an output coming from a UPS after a set time that goes to a PLC input.  I take a coil from the PLC modbus address that I have bound that will set "Quit LabVIEW", however, I need to have LabVIEW save the project "i.e. Save All" before the "Quit LabVIEW" executes. I cannot find any examples or vi's to do this.  Any ideas? 

TheGreekTechMan_0-1701793541457.png

 

0 Kudos
Message 1 of 4
(602 Views)
Solution
Accepted by topic author TheGreekTechMan

Generally, you should not be using the Quit LabVIEW.  It just immediately stops everything when I'm fairly certain you actually need to gracefully turn everything off and release the resources.

 

Further, if you are really trying to do some control and/or safety, you should not be running in the project.  Build an executable and have it gracefully shut everything down when that PLC signal is TRUE.


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
0 Kudos
Message 2 of 4
(587 Views)

The Quit LabVIEW vi worked great this time, I do not know why I had errors before.

 

Thanks

0 Kudos
Message 3 of 4
(573 Views)

@TheGreekTechMan wrote:

The Quit LabVIEW vi worked great this time, I do not know why I had errors before.

 

Thanks


The reason is exactly what was mentioned before.  "Quit LabVIEW" aborts your code and shuts it down in an uncontrolled fashion.  Sometimes that could be okay, sometimes it will be bad; in your case, sometimes it might even be dangerous.

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.
Message 4 of 4
(565 Views)