NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I access sequence context of a different sequence?

Hi,

 

I have a number of sequences in my sequence file. One of the is called functional and it executes a functional test on the product. There's also unload sequence that along with UI walks the operator through load/unload steps. How can I move my custom reports to unload sequence. My VI is using sequence context and iterates through Locals.ResultList container. In functional sequence I just use RunState.ThisContext. Would would this expression look like if I were to move report file creation to another sequence? Is the data still available?

 

Thanks

CT

0 Kudos
Message 1 of 4
(3,588 Views)

Where does your unload sequence get called? In other words, what sequence has a step that calls your unload sequence?

cc

0 Kudos
Message 2 of 4
(3,575 Views)

I have Engage, Disengage and Functional sequences. Disengage would be perfect for reports as it only needs 5 seconds to go through its process. Functional takes 20 seconds.

I am running Batch Model with 8 sockets. 2 sockets at a time run each sequence. 

Thanks

CT

0 Kudos
Message 3 of 4
(3,566 Views)

The results list is copied up to the Batch Model so you could get it there. You wouldn't use sequence context, but you can get a reference to the exact same results list data. There are two execution entry points in the batch model, only one will have the ResultList. Put a breakpoint at any step after MainSeuenceCallback step in Test UUTs -- Test Socket Entry Point, and then look at Locals.ResultList[0] (REsultList is copied to the process model sequence right after Main Sequence is done.) You can also look at the TestReport Callback step a little further down in Test UUTs -- Test Socket Entry Point to see how to pass ResultList[0] into your other subsquence.

 

Of course I'm assuming that all of your sequences are called by the Batch model, Functional is the MainSequenceCallback model callback and the others are model callbacks as well. So I don't know if this will really do anything for you. You didn't really say where all yur sequences were called.

cc

 

 

 

 

0 Kudos
Message 4 of 4
(3,563 Views)