NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I test on a measurement value from a Test Display test.

I'm new to Test Stand, using the Display Test version. I would like to get a delta value between an LCD off and on. Psuedo code is:
1. Turn on LCD, MFC dll call
2. Get illumination value, Test Stand GrayScale Test
3. Turn off LCD, MFC dll call
4. Get illumination value, Test Stand GrayScale Test
5. Subtract on and off values and compare against a limit.

Thanks, Brad
0 Kudos
Message 1 of 3
(3,154 Views)
Imagine I have two intensity tests, the first one with the LCD Off. The Intensity will return to TestStand an array of results Step.Results.Measurements[*]. This is a container when among other things we have a field called data. Every other value correspond to the intensity value so does the standard deviation. One easy approach is creating an array of numbers and pass the data from the result list into that array for the previous data( Let's call it PrevMeas[]). After executing the second intensity test, you will have another result list, which could be used to generate a second array of numbers with the same size as the previous one. You have to make sure that both arrays are the same size, in other words that we have the same number of bins in each Intens
ity test. Let's call the second array CurrMeas[]. Now you can go through the two arrays with Runstate.LoopIndex as your index to get the difference between those two arrays: CurrMeas[Runstate.LoopIndex] - PrevMeas[Runstate.LoopIndex]. I've added in my example an array of ActiveX references for those arrays in case you wish to do that from within your C development environment, but if the only thing you want to do is the difference between those two arrays you can do so within TestStand without sacrificing performance.
Message 2 of 3
(3,154 Views)
Excellent example of getting the measurement data from a Display Test step.
0 Kudos
Message 3 of 3
(3,154 Views)