01-06-2006 08:55 AM
01-09-2006 09:16 AM
01-09-2006 11:04 AM
Antoine,
What I am trying to do is to verify instruments performance and if the instrument fails, use the calibration capabilities of the instrument to attempt to correct the issue. If the instrument has NO calibration cabilities, then NO adjustment can be made. After making adjustments, I will then go through and verify the performance of ALL the instruments and if during this pass all the instruments pass (no adjustments), I want the whole sequence to pass. Because of cascading effects it may be neccessary to run more than one adjustment pass. I hope this clarifies what I am attempting to do.
Hurst C.
01-10-2006 11:34 AM - edited 01-10-2006 11:34 AM
Hurst,
A solution for your problem would be to test your instrument inside a loop.
If the instrument test passes you would exit the loop otherwise you will try to adjust the instrument and try it again.
You will need to set a maximum number of attempts to adjust the instrument. If the test does not passes after the maximum number of attempts the test would fail.
I have created a very simple sequence file to show you how to implement this.
I only have a 'MainSequece' where I call a subsequence ('SequenceCall' step).
The sequence call step is configured to be executed in a loop. (step properties -> 'Loop Options' tab)
You set the maximum number of attempts using the variable 'Locals.NumTimesToAdjust').
Inside the subsequence the test takes place.(I pass the test if the loop index is 3)
The adjustment only occurs if the test fails (step preconditions).
Take a look to the seuquence file attached and if you have any question let me know.
The sequence file is a TestStand 3.1 file. Let me know if you are using a previous version of TS.
Best Regards.
Message Edited by Antonio Lie (NI) on 01-10-2006 11:36 AM
01-10-2006 04:21 PM
I'm using TS 3.0.
I have come up with a method (which I have tested) that works quite well. I pass each one of my performance verification steps a flag. In the C-code this flag dis/enables the Step failure causes sequence failure step property. When I'm ready to do my final pass, this flag is set to true. This allows me to ignore results collected during the adjustment pass, but still documents all of the adjustment pass results in the report file.
Hurst C.
01-11-2006 09:30 AM