NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Executing Sequence from LabVIEW

How do I run a execute a sequence file from LabVIEW. I dont have any inputs to be passed to the sequence. For example I have attached a simple Sequence file which will just give a pop-up message when executed.

 

How will I make LabVIEW invoke and run this sequence file. The input to the VI should only be the path of the Sequence File.

0 Kudos
Message 1 of 20
(4,666 Views)

What you are asking information about is "Creating a TestStand User Interface". There are examples available with the TestStand installation.

Please take a look into the documentation and the examples for further general information about how you should/have to approach you requirements.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 20
(4,660 Views)

Flamboyant,

 

Do you want the sequence file to run in the User Interface or in the Sequence Editor? 

 

My recommendation is to follow Norberts advice and look at the User Interfaces that ship with TestStand.  There are 2: Simple and Full-Featured.  I recommend starting with the Simple.  If you browse to the <TestStand> directory and then go to UserInterface/Simple/LabVIEW  you will see the project and executable.  Being a CLD I hope you can navigate your way around the project. 

 

If you take the TestStand course offered by NI then in the advanced class there is an exercise that shows how to modify the User Interface.  I have yet to find it on the web.

 

Good Luck,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 20
(4,654 Views)

I want to run the sequence in the Sequence Editor. Its just like invoking a sequence execution from LabVIEW

0 Kudos
Message 4 of 20
(4,644 Views)

So you are creating your own Sequence Editor in LabVIEW....???  That doesn't sound fun at all.

 

I don't understand this statement here: "Its just like invoking a sequence execution from LabVIEW"  Could you elaborate?  Or do you mean it's like invoking a sequence execution from the User Interface which is built in LabVIEW?

 

The only way I'm aware of to have LabVIEW kick off the Sequence Editor (without building your own in LabVIEW) is to do it through the command line:

http://digital.ni.com/public.nsf/allkb/146D372C1F807E6D862567E7004881AB?OpenDocument

 

Instead of testexec.exe you would use seqedit.exe.  But that just seems ridiculous.

 

Give me some more info and we'll help you find the right solution.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 20
(4,642 Views)

Is it possible to control the Sequence Editor from LabVIEW using something like ActiveX?

0 Kudos
Message 6 of 20
(4,640 Views)

Please see this thread. The author claims that he was able to execute a sequence using the sequential process model using the Engine.NewExecution method in LabVIEW.

 

I want to see an example code as to how to do this. My LabVIEW Version is 2009. 

0 Kudos
Message 7 of 20
(4,638 Views)

Every user interface delivered by TestStand is able to start a sequence. It is possible to use Engine.NewExecution to start off an execution from such UI and it can be implemented quite easily.

Nevertheless, i don't like the strict binding of UI to TestStand in such a way if there is a more gentle way available. I suggest to use AppMgr.GetCommand with the type "CommandKind_Exit" and then invoke it's "Execute" method.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 8 of 20
(4,633 Views)

Nobert B wrote:

 

Every user interface delivered by TestStand is able to start a sequence. It is possible to use Engine.NewExecution to start off an execution from such UI and it can be implemented quite easily.

 


Can u show how...

0 Kudos
Message 9 of 20
(4,629 Views)

Use "GetEngine" from the AppMgr and then use this reference to call "NewExecution".

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 10 of 20
(4,627 Views)