LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

itterating through a sequence

hi,
I need to iterate through a test stand sequence at run-time. I've added a dll call at the cleanup group that supposed to go over the sequence before the step and collect failed steps, which are not logged to the database. My problem is that if one of the steps is a sequence call I can't seem to find the way to step into that sequence. Does anybody know how to accomplish that?

thanks.
0 Kudos
Message 1 of 4
(3,327 Views)
Hi,

As long as you aren't making a new execution or thread, you can use the result list local variable to iterate through.

Locals.ResultList[x] will contain the fields you need to use normally for reporting to a database. But in the case of a sequence call, you can use Locals.ResultList[x].TS.SequenceCall to get the result list of the sequence that is called.

If you have the sequence call as a new thread, you will need to wait for the threads or executions to finish executing before accessing the local variable.
0 Kudos
Message 2 of 4
(3,327 Views)
the steps are not logged to the report/database so they will not appear in the result list, is there a way to find out the steps status is this case as well?
0 Kudos
Message 3 of 4
(3,327 Views)
You can use the RunState to get the status of any step in any step in this sequence file using this property path:

RunState.SequenceFile.Data.Seq["MainSequence"].Main["Action"].Result.Status

David Mc.
NI Applications Engineer
0 Kudos
Message 4 of 4
(3,327 Views)