LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean to string convertion

HI ,
Is there any way of converting boolean to string or vice versa in labview 8? The source is boolean type and the sink is string type. See the attachment .
 
Thanks
SR 
0 Kudos
Message 1 of 6
(5,122 Views)
Can you please specify what exactly the output string should be? Your attached diagra is not clear to me. please give more details that we can help you.
Btw. look at the Strings- Palette, I think there should be what you need.
Greets, Dave

Message Edited by daveTW on 07-03-2006 10:35 PM

Greets, Dave
0 Kudos
Message 2 of 6
(5,116 Views)
While it is not clear what you actually want to do, I took a wild guess and made a little demo.
 
There are many other ways to do this. Of course you can freely choose the true and false strings.
 
 

Message Edited by altenbach on 07-03-2006 02:05 PM

Download All
0 Kudos
Message 3 of 6
(5,107 Views)
Here's another possibility using the "format to string" functionality.



Note that if you don't need to format back to boolean, the code gets much simpler.

Shane.

Message Edited by shoneill on 07-04-2006 08:55 AM

Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 4 of 6
(5,087 Views)
Hi
You can use the string palette functions:
'Scan From String', and 'Format Into String'

'Scan From String' interpretates TRUE/FALSE or T/F to boolean

The trick with 'Format Into String' is to wire a boolean, to the
default value input

0 Kudos
Message 5 of 6
(5,063 Views)
I imagine this is one of those problems with dozens of solutions.  I would just use a Select.  If you need to go backward, I would use the equate Shoneill described.





Message Edited by jasonhill on 07-05-2006 09:01 AM

Download All
0 Kudos
Message 6 of 6
(5,055 Views)