09-20-2011 12:25 AM
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.
09-20-2011 06:34 AM
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
09-20-2011 08:59 AM
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,
09-20-2011 11:22 PM
I want to run the sequence in the Sequence Editor. Its just like invoking a sequence execution from LabVIEW
09-20-2011 11:43 PM
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.
09-20-2011 11:53 PM
Is it possible to control the Sequence Editor from LabVIEW using something like ActiveX?
09-21-2011 12:09 AM
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.
09-21-2011 02:58 AM
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
09-21-2011 04:09 AM
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...
09-21-2011 04:37 AM
Use "GetEngine" from the AppMgr and then use this reference to call "NewExecution".