11-18-2019 12:46 PM
Greetings,
I have developed a custom UI and up until now I only have one sequence file open at any one time. When I hit Test UUT's It runs the sequence file. I now need a way to have several sequence files in memory and select which one is active, so I can choose which sequence file will run when i start a test. Within TestStand, TestUUT's will start an execution with the active sequence tab, or the active item in the sequences list bar. I do not have either of these visible to the user, How can I set the 'active' sequence file using the teststand API?
Thank you,
Michael.
Solved! Go to Solution.
11-18-2019 03:23 PM
Are you using the manager controls or not? This will make a big difference in how you do this.
11-18-2019 03:28 PM
You should be able to call ApplicationMgr.OpenSequenceFile (<path>) method. Even if it is open it will still make the sequence file the active one I believe.
11-18-2019 03:36 PM
Thank you, I will try that. I do have a list control at the moment which shows open files, the active file and the executions. My plan is to remove this once the system is in production. The reason for leaving files open is to avoid the delay caused by preloading modules. If your idea works it will be safe once the list bar has gone so there is no way the operator could change the active file.
11-18-2019 04:09 PM
I think you will want to keep the listbar but just hide it from the user. It contains a collection of sequence files which is needed by the SequenceFileViewMgr to track all of the sequence files that are open. It's been a while but I think that's right.
Hope everything goes well for you.