NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

change teststand post actions from labview

Hi,

 

Is there a way to change the post action of a test in teststand from Labview.

 

At the moment, if one of the tests fail out of limits then the post action is set to 'ON FAIL - GO TO NEXT STEP' but if the unit does not run then a diagnostics labview routine runs and at the end of that I would like to change the teststand post actions to 'ON FAIL - GO TO CLEANUP'

 

Can you tell me if this is possible

 

Thanks

 

Chris

0 Kudos
Message 1 of 3
(3,239 Views)

Hi,

 

Rather than have this in your code module you should look to use the SequenceFilePostFailure to alter the direction your sequence takes.

 

You can find an example of using this callback in the TestStand Examples.

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,233 Views)

Hi

 

Yes it should possible.

 

Step step = m_SequenceContext.Step; if(nValue == 0)

{

step.FailAction = "Next";step.FailActionTarget =

"";

}

else

{

step.FailAction =
"Goto";

step.FailActionTarget = "<End>";

}

 

 

 

Regards

 

Juergen

 

EDIT: This example Goto Endgroup --Sorry!

Message Edited by j_dodek on 04-21-2010 01:51 PM
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 3
(3,224 Views)