NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequence adapter Multiple Numeric Limit Test

Solved!
Go to solution

I use the Sequence adapter and Multiple Numeric Limit Test. Inside the sequence I also have a Multiple Numeric Limit Test (for the attached example I have used the None adapter). The substep is failing but the sequence is passing

Why is the sequence passing when the substep is failing?

Is there a workaround?

0 Kudos
Message 1 of 9
(3,887 Views)

I have never configured a Sequence Call Step as a Multiple Numeric Limit Test but it looks to me like it is doing what you have asked.  You have configured the None Adaptor Multiple Numeric Limit Test, in your "test" SubSequence to test two values, 9 followed by 5, with 5 always failing.  Then you pass a measured value of 9 back up to your Multiple Numeric Limit Test sequence call which always passes.

Message 2 of 9
(3,871 Views)

Hi,

 

What are you trying to do - check numeric values and also pass them back to the main sequence to check there as well?

 

I'll try and help if you can describe what you're trying to achieve.

 

Regards,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 3 of 9
(3,869 Views)

I am not passing the values back.

Inside the subsequence I might have around 50 measurements that I want to evaluate.

The results I want to return are calculations I do at the end of the subsequence. I have dynamic limits for most og the calculations and I found it much easier using a Sequence as a Multiple Numeric Limit.

Some of the calculations are used as limits for some of the other calculations. That is NOT the problem. The issue is that a failing step in a substep can't make the sequence to fail

 

0 Kudos
Message 4 of 9
(3,860 Views)

Then you probably need to change your station options -

 

Configure >> Station Options... >> Immediately Goto Cleanup on Sequence Failure = TRUE

 

Regards,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 5 of 9
(3,853 Views)

That could be an option but not for me. I want the rest of the measurements and calculations before exiting. That gives me an idea of where the fault is

0 Kudos
Message 6 of 9
(3,849 Views)
Solution
Accepted by SercoSteveB

If you want to do that then do the Multiple Numeric Limit Test in the Main Sequence as a separate step - the subsequence call will be able to pass or fail and you'll be able to check the returned values before ending the test.

 

I've attached a modified copy of your sequence file.

 

Regards,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 7 of 9
(3,847 Views)

Thanks for your suggestions.

I choose a solution where I return the state of RunState.SequenceFailed from the subsequence. In the post expression the status is returned

0 Kudos
Message 8 of 9
(3,826 Views)

Hi

 

Maybe this example will help.

Subsequence "test" is dynamically collection and MultipleStep in MainSequence is doing

validation.

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 9 of 9
(3,816 Views)