I came across this "You should also capture filtering events such as
"panel close?" and "application exit?", discard them and activate your
own shutdown code instead (change pin to low, etc. etc. then end the
program). " and need to know how to implement it. I need to be able to prepare the program to terminate before it aborts if either the abort button is pressed or the window is closed while the program is running. Any ideas on how to implement a capture of said filtering events?
As mentioned in the link, disable the abort button or the entire toolbar (VI Properties>Window Appearance>Customize). Traping the other events is shown in the shipping example called Event Conditional Stop.