NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding array elements to Locals.ResultList

Hello,

How can I create additional array elements in Locals.ResultList? I am using a single test step for an in-circuit-test that creates a lot of results similar to a numeric limit test. My first idea was to add each result to the end of the Locals.ResultList Array. There is a field "TS.id" that should contain a unique number assigned by TestStand, but I could not find out how to obtain this number.

Is this a suitable way for creating more than one result from a single test step? Maybe there is some better method I missed?

Thanks
Mike
0 Kudos
Message 1 of 4
(3,613 Views)
Hi Mike,

Not sure whats going on here. Have you generated a custom step type here based on a Numeric Limit Test?

If you have a step that's going to generate more than one result and each of those results you require individually validated against some limits which are recorded. Why not use the Multiple Numeric Limit Test step type?
With this step you pass all your results back via an array (Step.NumericArray), set up the limits for each result and bingo you have recorded each measurement.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,613 Views)
Hi Ray,

yes, I was already thinking about this step type, but I haven't tried yet. Maybe there is a solution which can also run on TestStand 1.0.x.

I am not using any custom step types, it is just a simple action step usign the DLL flexible prototype adapter. All information about the tests (i.e. the number of steps, the step names, results, limits and measurement units) are not known outside this DLL, so I have to "upload" all this information somehow from my DLL to TestStand. I don't even know how many results come back when I call this DLL function.

In other words, I am trying to integrate a report from a different piece of software into the TestStand reporting system. This allows me to create a report in text or HTML format or to log it to a da
tabase.

Regards
Mike
0 Kudos
Message 3 of 4
(3,613 Views)
Hi,

You could pass your data back to TestStand as a set of arrays for Step Names, Results, Limits etc and store this data into some local arrays.

Then use a None adapter Numeric Limit Test step type which has been setup to loop on the size of array. In the pre expression of the step you can then pickup the relevent data and modify the Step properties for Step Name, Result, Limits etc.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,613 Views)