Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Zero DAQ outputs if program aborted

Hello, Is it possible to make the DAQ board analog outputs zero if a LabView program is aborted? I have a program controlling several power supplies via NI6703. Within the program is a "Power Off" button that will zero the DAQ outputs. However, if someone just aborts or closes the program, then the DAQ voltages remain until the program is started again. I'd like to zero them if the program is aborted.
Thanks, Peg
0 Kudos
Message 1 of 2
(2,931 Views)
1. You can prevent the user from clicking the abort or close by hiding them. Go to VI Properties>Window Appearance>Customize. Uncheck the options 'Show Abort button' and 'Allow user to close window'. You can modify the menu to remove the exit option.
 
2. You can trap the close and exit with an event structure and do your cleanup. There is a shipping example called Event Conditional Stop that you should look at.
0 Kudos
Message 2 of 2
(2,929 Views)