NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can i execute NI teststand from command line

 I want to execute my sequence file from command line by following command

CD c:\
"C:\program files\national instruments\teststand 4.1\bin\seqedit.exe" /quit /runentrypoint "single pass" "c:miragelan_scpi\1.seq"

 

but in the above case the UI for sequence editor will open up , is there any other way so that UI will not open and 1.seq get executed.


 

0 Kudos
Message 1 of 5
(5,171 Views)

Vasav,

 

For clarification, do you want it to be hidden or to use a custom user interface? I don't know how to run it hidden, but if you want it to run in a custom user interface (not the sequence editor), check out this link:

 

Edit File Associations

 

Hope this helps.

 

-Jack

0 Kudos
Message 2 of 5
(5,163 Views)

Jack,

 

thanx for the help but my problem is that i want Sequence editor to be hidden while executing the sequence.What i understood from your explantion that we can associate our 

sequence file to some other UI(like TestExec.exe) but still the dialog for this executable also opens up.

 

Now i have 2 question

1.Can we modify in the source code of TestExec.exe so that it can be executed as hidden.

 2.Can we have some flag that we can pass on the command line to execute Sequence editor so that its GUI doesn't pops up.

 

- Vasav 

 

0 Kudos
Message 3 of 5
(5,138 Views)

Vasav,

 

1. Yes, you should be able to make modifications to the source of the user interface to have it not display - The simple user interface might be best for this.

 

2. The flag set for the TestStand engine can be found by calling "seqedit /?" from the command line (which you probably already know...). You could modify the user interface to read the flags passed in to the main function, and set the GUI panels to hidden instead of displaying them, based on your own flag you define. I played around with the standard CVI based User Interface, and was able to see the flags in the argv parameter, and I could make the GUI not show up by calling SetPanelAttribute (gMainWindow.panel, ATTR_VISIBLE, 0);  - You should be able to do what you need to fairly easily in whatever programming environment you're using (LabVIEW for instance).

 

Hope this helps...

 

-Jack

 

 

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

Hello Vasav,

Thank you for posting on the NI Discussion Forums.  To answer your questions:

(1)    Yes.  I’m not sure which TestExec.exe you are referring to, but there are several Operator Interface examples that ship with TestStand, with their source code in the same folder (in several different languages).  These examples are in the <TestStand Private>\UserInterfaces directory.  You can modify one of the examples to run with a transparent front panel to meet your needs.  If you are referring to the Sequence Editor source code, unfortunately you cannot modify this.

(2)    I do not believe there are any DOS commands/arguments to run an application transparently. 

Your best bet is to run the sequence file with a customized OI (which runs transparently) and to associate it with that OI using the method described by Capt. Jack. 

If you choose to do this with the LabVIEW example OI, it is quite easy to force the VI to run transparently.  From the Front Panel or Block Diagram, go to File » VI Properties… and select Window Appearance in the Category pull-down and select Customize…  From here, you can set the Window Runs Transparently property to 100%.

Chris_G
Sr Test Engineer
Medtronic, Inc.
0 Kudos
Message 5 of 5
(5,125 Views)