06-15-2009 12:56 PM
Solved! Go to Solution.
06-15-2009 01:42 PM - edited 06-15-2009 01:44 PM
This is really a job for a code module in your programming language of choice such as LabVIEW, C#, C, or C++.
However, if you want to keep it all in TestStand, the following statement step will extract cmd_arg into Locals.Token:
Locals.Expression = Engine.NewExpression(),
Locals.Expression.AsExpression.Text = "cmd_name cmd_arg",
Locals.Expression.AsExpression.Tokenize(0, 0),
Locals.Expression.AsExpression.GetToken(1, 0 /*unused*/, 0 /* unused */, 0 /* unused */, Locals.Token)
you'll need to create Locals.Expression as a reference and Locals.Token as a string.
06-15-2009 02:15 PM