NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change step.arguments on Preconditions?

Solved!
Go to solution

I'm trying to change the Step.Arguments value during the Run State of the Sequence on the Preconditions, but I'm not able to execute it. The main idea is to:

1) Set the Step Argument Expression on the Call Settings tab as: "/K echo HELLO"

2) During the Run State, change the Step Argument Expression to:  "/K echo GOODBYE. " with the following expression on the Preconditions tab:

Step.Arguments =  "/K echo GOODBYE. ",

But the following errors appear:

ERROR 1: Error in Argument Expression Unexpected token: /

ERROR 2: The following error occurred while logging additional result 'Arguments': Error in call to expression function 'Evaluate'.
Unexpected token: /

 

What would be the correct way to change the Step Arguments text?

0 Kudos
Message 1 of 3
(2,363 Views)
Solution
Accepted by topic author HelenMunoz

Because Step.Arguments is an expression you have to enter it as such:

Step.Arguments = "\"/K echo GOODBYE.\""

 

Try that.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 3
(2,356 Views)

Thanks a lot!!!! It Does Work!!!

0 Kudos
Message 3 of 3
(2,327 Views)