NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Open Sequence File for Viewing, but don't execute (C#)

Hey All,
 
I am working on a custom Operator Interface and one thing I'm trying to add is the functionality to display a list of all tests to be run in the near future.
 
I currently have a recursive function that is invoked the second the loaded sequence file begins executing.  It will walk through the steps in cleanup, main, and setup (done with <sequence>.getNumSteps() and then a for loop with <sequence>.getStep()).
 
When I encounter a sequence call that is local to the current sequence file I simply call my recursive function passing it
<sequence>.SequenceFile.getSequenceByName(<sequence specified in step>);
 
I have gotten this to work with great sucess.
 
I am however having trouble getting this to work when the sequence called is in a new sequence file.  Is there anyway to open/load the sequence file just so I can analyze all steps in this sequence file?
 
I have tried this.axApplicationMgr.OpenSequenceFile(); but haven't figured out how to get the operator interface to return to the previous sequence file.
 
Any help would be appreciated.
 
- Kyle
0 Kudos
Message 1 of 2
(2,804 Views)
I was able to figure this one out. 
 
I used a reference to the engine: axApplicationMgr.getEngine()
 
and then used getSequenceFileEx() and releaseSequenceFileEx()
 
Make sure for both of them under options you use: GetSeqFile_DoNotRunLoadCallback and ReleaseSeqFile_DoNotRunUnloadCallback resepctively.
 
 
0 Kudos
Message 2 of 2
(2,793 Views)