12-05-2023 10:25 AM
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?
Solved! Go to Solution.
12-05-2023 10:51 AM
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.
12-05-2023 11:06 AM
The Quit LabVIEW vi worked great this time, I do not know why I had errors before.
Thanks
12-05-2023 11:19 AM
@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.