Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Number to Boolean String

by David_L on ‎07-22-2009 03:47 PM

Introduction

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.

Comments
smercurio_fc
N/A

See here for a simplified version.

David_L
N/A

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