07-20-2017 06:17 AM
Hello,
I have just started to use TestStand in my current job and I would need a bit help.
I have a 2D array as local (Locals.2Darray). I have to add more elements to both columns of the array during the testsequence.
What would be the easiest way to do that?
Thank you in advance for all help!
07-21-2017 04:29 AM
Hi, Try below expression please:
InsertElements( Locals.2DArray,"[0]",0), SetElements(Locals.2DArray,1.23456,"[0][0]")
07-21-2017 06:59 AM
I am wondering why your teststand did not give an error while your local variable name start with number.
Second as you suggest
InsertElements( Locals.2DArray,"[0]",0), SetElements(Locals.2DArray,1.23456,"[0][0]")
This method only useful for one dimensional array.
This thread may answer your question.
07-23-2017 08:38 PM
Sorry for the wrong parameter name staring with a digital, below expression works:
InsertElements( Locals.Array2D,"[0]",0), SetElements(Locals.Array2D,1.23456,"[0][0]")