NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Run sequence via CMD and provide parameters

Solved!
Go to solution

How can I provide variables when I call a sequence via CMD?

 

I created a simple sequence which will just do one pop-up. Now I want to change the text of the pop-up. Sequence is attached.

 

Something like this:

C:\Program Files (x86)\National Instruments\TestStand 2017\UserInterfaces\Full-Featured\CVI\Source Code\WIN32>TestExec /run MainSequence PathToSeq\CMD_Sequence.seq Parameters.PrintString "NotDefault" /quit

 

 

0 Kudos
Message 1 of 3
(294 Views)
Solution
Accepted by PTH-POS

First thing; you would specify the argument as follows:

C:\Program Files (x86)\National Instruments\TestStand 2017\UserInterfaces\Full-Featured\CVI\Source Code\WIN32>TestExec /run MainSequence PathToSeq\CMD_Sequence.seq /myArg "NotDefault" /quit

 

/myArg could be anything.  Examples:  /data or /custom or /popUpSettings

 

This article will help you get started.

How To Get Command Line Arguments In TestStand Sequence Editor? - NI

0 Kudos
Message 2 of 3
(272 Views)

Thank you @ee-jallen!

 

I made it and I will upload my test example here for other users.

0 Kudos
Message 3 of 3
(249 Views)