NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

pass/fail in a teststand pop-up

Hi guys, Can I do a pass/fail test in a message pop-up? When I click OK I want a pass and Cancel a fail.

0 Kudos
Message 1 of 3
(7,612 Views)

Hey JoVMo,

 

Couple thoughts:

1- Set Button 1 to "Pass" and Button 2 to "Fail".  Paste the following in your post expression: Runstate.SequenceFailed = (Step.Result.ButtonHit == 1 ? False : True. 

Paste the following in your status expression: Step.Result.ButtonHit == 1 ? "Passed" : "Failed".    This should do the trick.

 

2-  Create a codemoduel (LV, CVI, etc..) that acts like a popup.  Call it as a pass/fail test step.  If the user clicks Fail then return that as the Pass/Fail trigger.

 

Hope this helps.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(7,572 Views)

Jus this would do the work.

Paste the following in your status expression: Step.Result.ButtonHit == 1 ? "Passed" : "Failed" 

Message 3 of 3
(7,241 Views)