NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

User Interface : How to run sequence without a visible window

Solved!
Go to solution

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

Message 1 of 5
(5,203 Views)

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.

 

 

0 Kudos
Message 2 of 5
(5,195 Views)
Solution
Accepted by topic author 0049

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.

Message 3 of 5
(5,182 Views)
I'm creating a user interface in labwiew for calling TestStand tests sequence.
Can you tell if the user interface can start automatically after opening the sequence files?
How can i do this in Labview Vi? Where?
Thanks a lot.
0 Kudos
Message 4 of 5
(4,473 Views)

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.

 

 

 

 

Regards
Ray Farmer
Message 5 of 5
(4,465 Views)