NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data from Custom StepType

Hi, I am in trouble with passing data between TestStand and my custom Step Type.

I developed some step type in LV2009 and now I need to make them MultipleNumericTest. The user edit the step type and creates a list of mesures and limits. When the user press the Save button all these data should fill the array Step.Result.Measurement[], but I have this error code:

 

-17325; Wrong number of array indeces.

 

The array Step.Result.Mesurement is empty, and I cannot index an empty array.

 

How can I fill this array programmately?

 

Thanks.

0 Kudos
Message 1 of 2
(2,952 Views)

Use either of the following:

 

PropertyObject.SetValNumber ( lookupString, options = 0x1, newValue)

PropertyObject.SetValNumberByOffset ( arrayOffset, options, newValue)

 

If you use SetValNumber set the options parameter to 1 (Insert if Missing)

 

 

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