NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

testing boolean in multiple numeric limit test

Hi ,

 

My VI is giving out 3 booleans and 2 numeric values which are needed to be  tested. Can we use "multiple numeric limit test" and if so how do we do that?

 

Regards

Prav

0 Kudos
Message 1 of 6
(3,303 Views)
I would use the Boolean to (0,1) function and have all of the results numeric.
0 Kudos
Message 2 of 6
(3,298 Views)

Str(Locals.DATA_valid)=="True"?1:0

0 Kudos
Message 3 of 6
(157 Views)

@petrus.prins wrote:

Str(Locals.DATA_valid)=="True"?1:0


If DATA_valid is a boolean, then the expression can simply be:

Locals.DATA_valid == True ? 1 : 0

0 Kudos
Message 4 of 6
(107 Views)

@ee-jallen wrote:

@petrus.prins wrote:

Str(Locals.DATA_valid)=="True"?1:0


If DATA_valid is a boolean, then the expression can simply be:

Locals.DATA_valid == True ? 1 : 0



Locals.DATA_valid ? 1 : 0

Message 5 of 6
(77 Views)

@Laurent_B wrote:

@ee-jallen wrote:

@petrus.prins wrote:

Str(Locals.DATA_valid)=="True"?1:0


If DATA_valid is a boolean, then the expression can simply be:

Locals.DATA_valid == True ? 1 : 0



Locals.DATA_valid ? 1 : 0


That's what I originally intended but somehow got mentally stuck on the True from the original post.

0 Kudos
Message 6 of 6
(63 Views)