04-20-2012 05:53 AM
I'm using a ForEach loop where one of the cases runs a VI that passes out a cluster of errors. The next step is a pass/failed step that use the <none> adaptor.
Every time the Vi gives out a variable that should make the pass/failed step react, it always gives out a "pass". The next loop however fails it, no matter if the VI gives passed or failed.
It seems to me like the error variable that I pass out doesn't get updated until the next loop. Is this correct? If so, how do you work around it?
04-20-2012 09:22 AM
First, you can combine the two steps into a single one and have the call to the LabVIEW step be of type Pass/Fail Test.
Can you post a small example of the behavior?
04-23-2012 03:58 AM
First I put the output cluster "Error" into a local variable. Then I've tried to create another VI that takes the error cluster inn and passes/failes depending on the error. I have also tried make a "none" adapter. The values in the local varaible "error" never seems to change, Only the initial values get used.
04-23-2012 10:04 AM
If you place a breakpoint inside the VI at the very end and look at the data, then step out and back into TestStand and then look at Locals.Errors how does the data differ? That variable will update when the step finishes executing and will pass the data back up to TestStand just fine.