05-13-2011 01:25 PM
HI, I have the following.
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?
05-13-2011 02:07 PM
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.
05-13-2011 02:18 PM - edited 05-13-2011 02:23 PM
Interesting.
05-13-2011 02:19 PM
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.
05-13-2011 02:30 PM - edited 05-13-2011 02:30 PM
I don't use dynamic data either, but in your case you could use the limit testing express VI.
05-13-2011 02:48 PM
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?
05-13-2011 02:55 PM
05-13-2011 03:05 PM
Thanks but I'm more confused now.
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)
05-13-2011 03:06 PM
if (x>a) AND (x<b) then TRUE
05-13-2011 03:12 PM
- 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.