NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to revert changes made to sequence file dynamically

Problem synopsis:
1. TestUUTs entry point of custom process model, which is based on NI SequentialModel is being executed.
2. PreUUT step of process model set Execution.ClientFile according to serial number, provided by operator.
3. During sequence execution step module inserts additional steps into running sequence.
4. After first UUT loop iteration sequence contain all the original steps plus all the steps, which were added dynamically.  This is exactly what I need.
5. Next UUT loop iteration is executing on updated sequence file. This is what I trying to prevent.
 
This design is serving following requirements:
a) dynamically load test sequence
b) dynamically add test results.
So my question is: how to implement this correctly?
I tried to release sequence file of previous iteration ("Engine.ReleaseSequenceFileEx") but it "SequenceFile.CanUnload==false" and "SequenceFile.IsExecuting==true".
But this happens during execution of PreUUT of process model. I think, at this point client sequence shall not be executing.
 
Steps 2. and 3. (see above) are executed in dll written using MS VC++ 2005.
TestStand is 3.5.0.725
 
Help me please.
 
Thanks,
Misha
0 Kudos
Message 1 of 1
(2,815 Views)