NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Message popup does not execute post action

Hello !

I want to use a timed message popup with two buttons, "Continue" and "Terminate".

The popup is placed in a subsequence.

Message popup:

Precondition: FileGlobals.Myboolean == true

Post Expression: Locals.MyButtonhit = ( ( Step.Result.ButtonHit == 2 ) ? 2 : 1 )

Post Action: Custom condition: Evaluate ( Locals.Buttonhit == 2 )
On Condition True: Terminate, On Condition False: Goto next step.

I cant get the message to execute the post action ?

Any ideas ?
Thanks.
Anders
0 Kudos
Message 1 of 5
(3,603 Views)
The Post Action should of course be:

Post Action: Custom condition: Evaluate ( Locals.MyButtonhit == 2 )
On Condition True: Terminate, On Condition False: Goto next step.
0 Kudos
Message 2 of 5
(3,596 Views)
Hi,

That is possible, i can see that you have used 2 difference local variables of button hit. May be that can be the cause for not able to terminate. instead of moving the button hit value to local variable and use it for the post action, you can directly use the "Step.Result.ButtonHit" itself. I have attached the sample seq for your ref. I didnt use the precondition, i suppose that is not related to this issue.

Thanks
Sasi
0 Kudos
Message 3 of 5
(3,596 Views)
The problem for me was running interactive !

It works correct for Test UUTs.

Thanks

/Anders
0 Kudos
Message 4 of 5
(3,589 Views)

Hello Anders,

TestStand 3.x supports branching in interactive executions. In previous versions of TestStand post actions and post expressions that pointed to other steps were NOT executed in interactive executions. In 3.x however you have an option that allows you to set branching capabilities in interactive executions and you can find this on the Execution tab in Station Options.

You can read about the different options in the TestStand Help. Note the 'Ignore all Branching' behaves identically to previous versions of TestStand.

Regards,

Jimmie A.

Applications Engineer, National Instruments

 

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 5 of 5
(3,545 Views)