NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating 2D array

Hi,

 

Is there any way to create 2D array explicitly, without the looping?

 

For example like C style:

 

myArr={{1,2,3},{4,5,6}}

 

I can create 1D arrays like that but when I create 2D the syntax error is thrown.

0 Kudos
Message 1 of 2
(4,233 Views)

MimiKLM,


One way of doing this is to use the SetArrayBounds() function as described in this KnowledgeBase article. Another approach would be to use a code module to perform these operations.

 

Hope that helps!

0 Kudos
Message 2 of 2
(4,188 Views)