From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

using post expression to copy more than one local variables

In TS 3.5, and in post-expression, how do I write an expression to assign new values to local variables.
ex: I have a multiple numeric limit test, using LabVIEW VI, at the end of the test, the LabVIEW VI has 3 values in the
Numeric Measurement array.

using post-expression, how do I replace three TS local variables with the three new values returned by
LabVIEW VI.
locals.a=step.NumericArray[0],
locals.b=step.NumericArray[1],
locals.c=step.NumericArray[2]

Is this the correct syntax?  is the comma the correct separator?
If I would like to copy the whole array, can I write
locals.myArray=step.NumericArray ?
0 Kudos
Message 1 of 2
(2,828 Views)

Hi,

the coma is the correct seperator but the syntax would be Locals.a=Step.NumericArray[0], but the highlighter would guide you through the correct syntax.

If you could just assign an array to receive the return data as you have detailed.

There maybe some array examples, but they maybe early examples (TS2.x) in the TestStand examples folder.

Regards

Ray Farmer

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,820 Views)