NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

.bat for a Teststand sequence file

Hi All,

 

I want to make the running of the sequence a single click process. Currently to run the sequence once I will have to open the sequence and then click 'Run Main Sequence'. This I wanted it to be a single click process. On exploring I found a .bat file is capable of doing so. Can anyone please suggest me a way to obtain the bat file for running the main sequence. Thanks in advance.

 

Regards,

S.P.Prasaanth

0 Kudos
Message 1 of 4
(5,156 Views)

Prasaanth,

 

you are looking for a customized user interface which allows you to pass instructions by command line parameters.

Essentially, you will pass the path to the sequence file to the UI, the UI will start TS and load that sequence file. You can add code to the UI that this sequence file is automatically executed.

 

Using a batch file enables the user to select different sequence files. You could also provide specific desktop links (as these can include command line parameters as well!).

 

Norbert

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

HI Prasanth,

 

YOu need to explore the following :

 

1) Running your test sequence from the command line ( see the command line options present for the test sequence editor).

 

2) You will need to take care of the login popup which comes when TestStand is run ( create a user name as you windows login - check for help or forums)

 

By putting the appropriate command line arguements it is defintely possible to run TestStand sequence from .bat or a vi or any other exe.

 

Regards,

 

Ravi

 

0 Kudos
Message 3 of 4
(5,140 Views)

you can also look into adding code into your SequenceFileLoad callback to do interesting things (like launching a separate execution using an approved entrypoint, and only if your configuration looks like an editor, or a runtime deployment...)

 

0 Kudos
Message 4 of 4
(5,107 Views)