04-21-2010 02:55 AM
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
04-21-2010 05:32 AM
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
04-21-2010 06:46 AM - edited 04-21-2010 06:51 AM
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!