I need to cut power to my instrument and to do this I need to turn a digital pin low. I want to do this if at any time the abort button is pushed. Is this possible?
The abort button should not be used at all except when the program is being debugged. It is best to hide the whole toolbar or just the abort button. Instead, you should place a Boolean on the front panel and monitor it with an event structure or poll it with a separate while loop.
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 to add to the other two, you cannot connect anything to the abort button. It does not run any code when pushed, but just stops everything right away.