LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows shutdown, restart events

Solved!
Go to solution

I have an application running in the background on Windows.

Whenever there is a windows restart or shutdown, I would like to identify that event so that I may save the data and close my application properly. What is the best way to do this?

0 Kudos
Message 1 of 3
(736 Views)

I am using the "Application Instance Close?" event handler as a way to identify the shutdown or restart events.

Is this a recommended approach?

0 Kudos
Message 2 of 3
(648 Views)
Solution
Accepted by Sable

Hi Sable,

 


@Sable wrote:

Is this a recommended approach?


Yes.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(630 Views)