NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing sequence callback programatically

How do I change between two versions of a sequence callback programatically?  For example, if I am debugging, I want to run a different version of SequenceFilePostStepFailure than when I am in production mode.

 

Or if I modify the SequenceFilePostStepFailure callback in the process model, how do I programatically turn on or off the override callback?

0 Kudos
Message 1 of 3
(3,083 Views)
The easiest way (albeit sloppy) I can think of would to include both versions of your callback, but append _Development or _Production to them. In the actual callback, use a sequence call and call the correct one by expression. To track whether or not you're in production mode, you could use a Station Global.
0 Kudos
Message 2 of 3
(3,080 Views)
Thanks for the response ... that's pretty much what I've been doing but was hoping there was a slicker way to choosing between sequences.
0 Kudos
Message 3 of 3
(3,071 Views)