NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Change comparison type to LOG programatically

Hi All,

I have a numeric limit test within a For loop (6 loops).

4 of those tests, test the output between 4V and 6V (Comparison Type "GELE") but the last 2 require no comparison ("LOG").

At the moment I have set the last 2 limits (using variables) to 1V and 10V to ensure no fails.

 

Is there a way to programmatically change the comparison type within the loop?

 

Regards

 

Chris

0 Kudos
Message 1 of 4
(2,764 Views)

In the comparison type, I think you could change it to something like: True?"GELE":"LOG"

 

(Replace "True" with your expression).

0 Kudos
Message 2 of 4
(2,736 Views)

Thanks for the reply but I found a way to solve it now thanks.

I created a pre expression that changed the comparison type (Step.Comp) from "GELE" to "LOG" after 4 tests had past

Locals.Loop_index > 3 ? Step.Comp = "LOG" : True

 

I attached an example

 

Cheers 🙂

0 Kudos
Message 3 of 4
(2,724 Views)

whoops... wrong sequence...

0 Kudos
Message 4 of 4
(2,720 Views)