NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make a numeric limit test with OR condition

Solved!
Go to solution

Is there any way to make a test step that is a comparison with an OR  and NOT condition?

The code module returns a value for PCB revision and the acceptible values are not contigious.  

For example, PCB revision must be 14, 15, or 17 but not 16. 

0 Kudos
Message 1 of 5
(3,651 Views)

No, the Numeric Limit Step does not provide this feature.

I propose to generate a custom step type derived from the Pass/Fail Step. This step will use a custom written post step substep for this specific comparison. If you implement a good module for this, you can use an edit substep to configure the comparsion (e.g. how many versions are valid, what are their values).

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 5
(3,639 Views)

I have not yet used a custom step type so will need to look into this.

Are custom step types saved with sequences or do they have to be installed separatly to each station?

I am working with an existing production system and need to push the new sequence out to all stations remotly.

 

 

0 Kudos
Message 3 of 5
(3,631 Views)
Solution
Accepted by topic author chiraldude

Custom Step Types are a type so they get copied to any sequence file that has an instance of them.  So when you deploy you will be fine without having to deploy any ini files.

 

In fact you could just create the new step in the sequence file only and not worry about doing the ini files.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 5
(3,628 Views)

You can use a pass fail step with expressions ( check attachment).

This step passes only for numeric value 14,15 and 17.

Hope this helps.

0 Kudos
Message 5 of 5
(3,585 Views)