NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line Arguements For TestStand Tools

Solved!
Go to solution

If I run the UI from the command line like this:

CommandLineUI.jpg

 

I get this:

UIHelp.jpg

 

Now I want to create a tool.  So in the Sequence Editor I go to Tools>>Customize...  Then I add a command tool that points to the UI executable.  Then I try to pass it an argument like I did on the command line above.  -Help!  It doesn't seem to work.  I've tried with quotes, without quotes, with a space, without a space, etc.....  Ultimately I want to pass my selected sequence file into there.  Ideas?

ToolCmdArgument.jpg

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

I tried what you are doing and it worked for me. (TestStand 2014)

 

command.png

Make sure you are pointing to the exe file not the short-cut.

 

Ray

Message 2 of 9
(4,446 Views)

Hi Jigg

 

for your task, RunState.SequenceFile.Path will to the trick

 

Screen2.png

regards

 

Juergen

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 3 of 9
(4,443 Views)

Hi

 

It is not working!!

RunState.SequenceFile.Path

"/runEntryPoint \"Test UUTs\" \""+RunState.SequenceFile.Path+"\" /quit"

it is referenceing to privious loaded..

 

This works:

"/runEntryPoint \"Test UUTs\" \""+"C:\\Temp\\Test.seq"+"\" /quit"

at least adding is working in expressionfield!

 

Regards

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 4 of 9
(4,438 Views)
Solution
Accepted by ~jiggawax~

Hi Jigg

 

RunState.InitialSelection.SelectedFile.Path is doing the trick

Screen3.png

 

Regards

 

Juergen

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 5 of 9
(4,436 Views)

Thanks everyone!  I tried in 2014 and it worked like a champ.  I was testing it out in 2010 and it wouldn't work.  Any of you have 2010?  I'm curious now if it is just my machine.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 6 of 9
(4,419 Views)

Interesting thing I learned today.  The arguments field in 2014 and earlier does not allow expressions.  So I can't call Runstate.InitialSelection....

 

That must be new in 2016.

 

Crazytown!

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 7 of 9
(4,406 Views)

Hi Jigg,

 

yes on TS2014 there is no expression button.

BTW if this would be my task, I would implement 2 additional sequnces  in my model

1. EngineCallback SequenceFileLoad for automatically updating the editors tools

    menubar with the sequence mention in 2. , because there are api-members

    allowing that stuff and menubar always fit's to your model's features.

2. Ordinary SequenceCall with only a Exe-StepType to call the UI 

    with arguments's expression parameters. 

 

Regards

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 8 of 9
(4,396 Views)

Thanks for the option.  There's a hundred ways to do this in TestStand.  I was hoping to get away with not using any dependencies.  In other words accomplish it simply through the menu.

 

Thanks for the help,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 9 of 9
(4,393 Views)