NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving and analyzing pass/fail data

I have an html summary data sheet that is created in addition to the detailed data sheet and now I need to shorten it. For example it had 2 single test, then several in a for each loop.

 

 

Test A Pass (FileGlobals.sumRpt[0])

Test B Pass (FileGlobals.sumRpt[1])

(for each loop)

Test C - Freq 1 Pass (FileGlobals.sumRpt[2]) (index is a variable incremented after each test)

Test D - Freq 1 Pass   (FileGlobals.sumRpt[3])

Test E - Freq 1 Pass   (FileGlobals.sumRpt[4])

(next loop)

Test C - Freq 2  Pass   (FileGlobals.sumRpt[5])

Test D - Freq 2 Pass   (FileGlobals.sumRpt[6])

Test E - Freq 2 Pass   (FileGlobals.sumRpt[7])

 

 

Now there are many frequencies so I must modify it as follows.

 

Test A Pass (FileGlobals.sumRpt[0])

Test B Pass (FileGlobals.sumRpt[1])

(for each loop)

Freq 1 Pass  (FileGlobals.sumRpt[2])

(next loop)

Freq 2  Pass   (FileGlobals.sumRpt[3])

(next loop)

Freq 3 Pass (FileGlobals.sumRpt[4])

(next loop)

...

 

where Freq 1, Freq 2, etc each is the result of Test C, Test D, Test E.

 

I use LabView much more than TestStand so not sure of the best approach. I can do it brute force using a pass count variable and setting the result to pass if the count equals the number of tests but this is subject to break if the number of tests changes. Another idea is to set the pass count to zero and increment for each passing result and set it to -100000 for a fail, then a positive number would indicate a pass. Just wondered if there are some built-in features I could use.

 

thanks,

 

jvh

0 Kudos
Message 1 of 8
(4,341 Views)

I should probably just clear a fail variable. Set if a test fails, do nothing on pass. Then at end of the loop if it is set the summary group is set to fail.

 

jvh

0 Kudos
Message 2 of 8
(4,339 Views)

Hi,

 

Can you not use the Step Loop facility? You can set it to record only the final result if you didn't want all loop results.

 

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

Thanks for posting Ray. 

 

Not familiar with that function, and don't see it under step variables. How is it accessed?

 

jvh

0 Kudos
Message 4 of 8
(4,324 Views)

Hi jvh,

 

You should find it under the Step Properties - Looping, checkout chapter 3 of  Using TestStand X.X - Editing Steps in a Sequence - Configuring Step Properties.

 

 

Regards
Ray Farmer
0 Kudos
Message 5 of 8
(4,300 Views)

Thanks Ray.

 

I had assumed that was for looping a single step and that FOR FOR-EACH and WHILE structures were for sequencing through a series of sub-sequences, which is what I have.

 

jvh

0 Kudos
Message 6 of 8
(4,287 Views)

Hi jvh,

 

You had assumed correctly, it's me that had mis-understood you problem. Hopefully now I am on the same wave length.

 

 

Regards
Ray Farmer
0 Kudos
Message 7 of 8
(4,280 Views)

Thanks Ray for the clarification. 

 

But I don't think you really want to be on my wavelength, it's always jumping from band to band. Job requirement...

0 Kudos
Message 8 of 8
(4,267 Views)