Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Number to Boolean String


The LabVIEW String/Number Conversion Palette contains many functions to convert a number to a Decimal, Hex, Octal, Fractional, Exponential and Engineering Strings.  However there is one missing: The Number to Boolean/Binary String.  This can be replicated very easily with the following code:

Number to Boolean String.png

Steps to Complete

Simply place this VI on your block diagram as a SubVI and use it as you would with the other conversion functions.  The width input will select the amount of bits to display in the string.  Floating-point and fixed-point numbers are rounded to integers. If width is larger than needed, zeros are added on the left. If width is inadequate, decimal integer string is as large as necessary.

Knight of NI Knight of NI
Knight of NI

See here for a simplified version.

Active Participant David_L
Active Participant

Wow I did not know that function existed.  I changed the example to be much simpler.  Thanks for the help!