10-15-2006 04:17 AM
10-15-2006 05:02 AM
There is no standard way of converting a boolean to a string, so there is no function to do this (a "True" boolean string can be "1", "-1", "Yes", "T", "True", etc.). You can do this by using a case structure or the Select function from the comparison palette (insert a boolean and output whichever string you want). You can convert it to a variant or to a number and then to a string or you can type cast it directly to a string. In short, it depends on what string you want, but the easiest way is by using the Select function.
This is really a rather basic question. To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
10-15-2006 05:05 AM
10-15-2006 07:21 AM
06-28-2015 05:15 AM - edited 06-28-2015 05:17 AM
This will send you "TRUE" or "FALSE" strings ... if you need to convert it to "1" or "0" strings (or any other strings you want) then use a simple case structure.
06-28-2015 05:41 AM
Hi,
have a look at this
06-28-2015 05:47 AM
06-28-2015 06:24 AM
06-28-2015 08:49 AM
@amitwadje wrote:
Hi,
have a look at this
avoids those dreaded BD Constants
06-28-2015 03:08 PM
@bogdan.ciobanu wrote:
This will send you "TRUE" or "FALSE" strings ... if you need to convert it to "1" or "0" strings (or any other strings you want) then use a simple case structure.
Phew. Good thing he has an answer now after agonizing through 9 years of slience on this thread.
Now, if only there were about 5 different ways to do this easier.