LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Do I Convert A (0,1) To A Boolean in LabVIEW?

I would like to convert  an array of (0,1) to boolean.
I did not find the function in LabView. There is only the function boolean to (0,1).
Gnaoui Bouchachiya
0 Kudos
Message 1 of 6
(13,340 Views)
Hi
 
For this you could use the type cast function.
 
Thomas

Message Edited by becktho on 11-30-2006 10:40 AM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 6
(13,332 Views)

Or something like this:

Note that for floating point types you usually need to compare a range.

Message Edited by tst on 11-30-2006 12:32 PM


___________________
Try to take over the world!
Message 3 of 6
(13,323 Views)
@tst: 5 stars to you - the most obvious is always so far away 😉
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 4 of 6
(13,314 Views)
I agree with Becktho that tst's  solution is better since bechktho's is limited to U8 and I8

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 6
(13,307 Views)
thank you
Gnaoui Bouchachiya
0 Kudos
Message 6 of 6
(13,295 Views)