LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

greater than function not sourcing bool?

Highlighted

HI, I have the following.

Boolean.JPG

Whenever I try to connect the 'Greater than' output to the AND function I keep getting a connection error "Dynamic type not Bool" well something like that. If this is the case how come I was allowed to connect the 'Less than' function to the AND?

Message 1 of 19
(1,134 Views)
Highlighted

Wow this is some new thing, I am also seeing the same in 8.6 version, Lesser than VI outputs dynamic data but not greater than VI. Nice question.

0 Kudos
Message 2 of 19
(1,122 Views)
Highlighted

Interesting.


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 3 of 19
(1,112 Views)
Highlighted

Both output dynamic data but only one input of the AND can be dynamic. More evidence to avoid the (evil) dynamic data type. The input to the greater than/less than functions should be converted to a scalar or 1D data - whatever it actually is.

Message 4 of 19
(1,110 Views)
Highlighted

I don't use dynamic data either, but in your case you could use the limit testing express VI.

 


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 5 of 19
(1,102 Views)
Highlighted

Hi, I have looked in the help file to convert from dynamic and it tells me to look in the 'Express palette' but the vi isnt anywhere to be found?

0 Kudos
Message 6 of 19
(1,093 Views)
Highlighted

 


@Bwts wrote:

Hi, I have looked in the help file to convert from dynamic and it tells me to look in the 'Express palette' but the vi isnt anywhere to be found?


It is under "express.signal manipulation". Look for "from DDT". 

 


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 7 of 19
(1,089 Views)
Highlighted

Thanks but I'm more confused now.Smiley Sad

 

I would like the output of the conditional block to give a Bool. So if the input signal is between two levels then I just get a 1??? (like every other computer programming langauge)

0 Kudos
Message 8 of 19
(1,084 Views)
Highlighted

if (x>a) AND (x<b) then TRUE

0 Kudos
Message 9 of 19
(1,082 Views)
Highlighted

 

  • You can first convert the original data to an array and then do the comparison (e.g. using in "range and coerce")
  • or you can say that you want a boolean output in the "From DDT" dialog.

 


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 10 of 19
(1,079 Views)