08-06-2009 05:25 AM
hi,
I am programming a TestStand user interface in C#.
Using axApplicationMgr(ActiveX), I can open my SequenceFile by "axApplicationMgr1.OpenSequenceFile(path);".
Suppose there is only one sequence(MainSequence) in the sequence file, which method should I use to directly run "MainSequence" without visible sequence view window and command connection to the button.
I went through the user manual. It recommends using SequenceFileView Manager control to launch executions.
• ExecutionEntryPoints
• Run
• RunSelectedSteps
• LoopOnSelectedSteps
• GetCommand
Can any one give me an example how to use these methods? I didnt figure it out by myself how to set the parameters.
Regards
Solved! Go to Solution.
08-06-2009 07:18 AM
Let me make it more clear. My plan was that:
1. Load sequence file by given path.
- axApplicationMgr.OpenSequenceFile(path)
2. Run MainSequence
- axSequenceFileViewMgr.Run(object parameter), how how to set "parameter"?
3. Get result pass/failed
- ?
If I use axApplicationMgr.OpenSequenceFile(path) to open sequence file, axSequenceFileViewMgr has no idea which sequence file is openned so I cannot launch the execution by axSequenceFileViewMgr.Run(object parameter).
In TestStand shipped UI example, axSequenceFileViewMgr connect the OpenSequenceFile button to access sequence file other than using axApplicationMgr to open sequence file. What is the difference between the two? And Except connecting to the button, how could I directly load the sequence file to axSequenceFileViewMgr? by using which method?
Thanks for the info.
08-06-2009 09:50 AM
Greetings,
I have found a way to do this.
axSequenceFileViewMgr1.Sequence = axApplicationMgr1.OpenSequenceFile(path).GetSequence(0);
Command RunCurrentSequence = axSequenceFileViewMgr1.GetCommand(CommandKinds.CommandKind_RunCurrentSequence, 0);
axSequenceFileViewMgr1.Run(RunCurrentSequence);
Hope it can help anybody who has the same issue.
08-31-2011 02:39 AM
08-31-2011 05:39 AM
Hi,
Rather than highjacked other posts
http://forums.ni.com/t5/NI-TestStand/Operator-Interface/m-p/1689482#M34317
http://forums.ni.com/t5/NI-TestStand/User-Interface-using-old-style-ActiveX-Controls/m-p/1689480#M34...
http://forums.ni.com/t5/NI-TestStand/User-Interface-using-old-style-ActiveX-Controls/m-p/1689478#M34...
http://forums.ni.com/t5/NI-TestStand/Differentiating-between-TestStand-user-interfaces-at-run-time/m...
http://forums.ni.com/t5/NI-TestStand/User-Interface-How-to-run-sequence-without-a-visible-window/m-p...
especially as some of these are several years old and all ready have a solution.
Why didn't you create your own post relevant to your problem. It's not the done thing to post the same question in multiple posts. At least you have contained all your posts to the TestStand board.