Hi Keddie. A couple of suggestions:
1) File -> VI Properties -> Window Appearance -> Customize -> toggle off show toolbar or abort button.
This should make the button disappear.
2) Use the 'Application Instance Close' event in an event structure. This won't catch all ways that an
application can be closed, i.e. through the task manager, shutting down windows, etc., but should be a
good start for 'normal' operation.
3) If you have hardware that can go 'unsafe' being controlled by a PC, you really should have some sort of
hardware interlock to protect against the PC locking up. We use a little serial port controlled watchdog timer
that sounds an alarm and opens a relay if the PC doesn't tickle the watchdog for 4 minutes or so. Ours
is application specific and expensive, but I am sure there are generic, less expensive devices out there.
Hope this helps.
Matt