NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically set string array upper bound teststand 3.1

Solved!
Go to solution

I am fairly new using Testand ..so I would appreciate all the help:

 

I created a string array using an ActiveX/COM action: PropertyObject.NewSubProperty (lookupString, valueType, asArray, typeName, options)

 

It creates an empty array of strings[0..empty]. How can I programatically set the upper bound of the array (for example the array of strings[0..8])

Due to my application requirements, I have to use Teststand 3.1

 

Thank you in advance,

 

Ellas1

0 Kudos
Message 1 of 3
(3,414 Views)
Solution
Accepted by topic author Ellas1

Hi,

 

I think in TS 3.1 you still have to use the TS API PropertyObject.SetDimensions (later TS's this has been superceded by an Array property) or you can use SetNumElements if it's a 1D array. You can of course checkout these function in the TestStand Help.

 

 

 

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

Thank you Ray,

 

the SetNumElements worked great.

 

George

0 Kudos
Message 3 of 3
(3,384 Views)