NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

setting parameter array values in teststand

I am trying to change a parameter array value in the pre-expression of a test step in a sequence file. I want to pass the array to a vi to set digital lines and relays. However, I get an error every time. Is this an operation that is supported?

Here is my syntax: Parameters.DIO(0)=true

Here is the error returned:

-17320; Unknown function or sequence name.

The pre-expression for the step 'Action' could not be evaluated.
Unknown function or sequence name '.'.
0 Kudos
Message 1 of 3
(3,138 Views)
Hi,
I think you need to use square brackets '[', not round ones, to index arrays.

Parameters.DIO[0]=true

Thanks

Sacha Emery
Applications Engineer
National Insturments (UK).
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 3
(3,138 Views)
Thank you Thank you. Sometimes it's the smallest things.
0 Kudos
Message 3 of 3
(3,138 Views)