Hi ADL,
I have attached an example based on your initial statement InsertElements(Locals.SignalNoiseRatio,1,Locals.ArraySize).
The first step uses the API calls to Insert 2 new elements into an empty array. It uses the Locals.SignalNoiseRatio as a reference. Using this reference you can then use the PropertyObject methods. A list and descriptions of the methods can be found in the TestStand Programmers Reference Manual. Also when you specfiy the Module you will be able to invoke the help from the Specify Module dialogBox. Once the Array contains elements the SetNumElement() will nolonger work you have to use the SetPropertyObjectByOffset.
So the next step get a reference to an element in the array. This is used in the third step which will
insert elements for the same type into the array.
I have also added an alternate method if you wish to insert a new value into an array. This step loops for Locals.ArraySize and inserts the value of the Loop Counter+1 into each element.
As for other examples, there are examples using the ActiveX adapter on NI website and also within The examples provided with TestStand. There have also been useful examples posted on the Forum pages.
Hope this get you started
Regards
Ray Farmer
Regards
Ray Farmer
