Solution
The sequences of “Test UUTs” and other
entry points have a property named “Entry Point Enabled Expression”, as highlighted in the following image:
According to the
Model Tab - Sequence Properties Dialog Box section of the TestStand API Reference, this property is a Boolean expression that TestStand evaluates to decide whether to enable the menu item for the entry point. If the expression evaluates to False, TestStand dims the entry point in the menu. If the expression is empty, the entry point appears in the menu. The default value of this property is True.
A straightforward method to modify its value and enable or disable the entry point during runtime is to use one of the expressions below in the MainSequence:
RunState.Caller.RunState.Sequence.RTS.EPEnabledExpr=True //Enables Entry Point
RunState.Caller.RunState.Sequence.RTS.EPEnabledExpr=False //Disables Entry Point
The following image shows an example of how these expressions can be integrated into the MainSequence: