NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass a 2 Dimensional String Array to VB.Net

I'm trying to pass a 2 dimensional String Array from TestStand 4 into VB.Net (2003), however the array in VB.NET is somehow in the wrong format.  The array size varies:

 

Array size is set by: 

  SetArrayBounds(Locals.asArray,"[0][0]","[5][" + Str(Locals.nMaxSize) + "]")

 

The Locals.asArray is then passed into a VB.NET function and instead of the array being:

  [0][0] = "Name1"

  [1][0] = "Attribute"

  [2][0] = "Default"

  [3][0] = "Class"

  [4][0] = "Member"

  [5][0] = "Instance"

  [0][1] = "Name2" 

 

I seem to get something like:

  [0]="Name1"

  [1]="Name2"

 

Is there a way to pass the array in a format that VB.NET will understand?

    I also need to Pass a similar array from VB.NET back to TestStand 4

 

Mike

0 Kudos
Message 1 of 3
(4,487 Views)

Hi Mike,

 

Would it be possible for you to attach an example sequence file and VB.NET project that displays this behavior?

Manooch H.
National Instruments
0 Kudos
Message 2 of 3
(4,365 Views)

Mike,

 

Did you get this issue resolved? Were you able to successfully pass the 2D string array from TestStand into VB.NET? 

Manooch H.
National Instruments
0 Kudos
Message 3 of 3
(4,180 Views)