07-19-2010 08:24 AM
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
07-19-2010 09:06 AM
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
07-19-2010 09:17 AM
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.
07-19-2010 10:57 AM
Thanks for posting Ray.
Not familiar with that function, and don't see it under step variables. How is it accessed?
jvh
07-20-2010 12:48 AM
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.
07-20-2010 08:06 AM
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
07-20-2010 08:35 AM
Hi jvh,
You had assumed correctly, it's me that had mis-understood you problem. Hopefully now I am on the same wave length.
07-20-2010 10:06 AM
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...