Skip navigation

Community

Currently Being Moderated

Number to Boolean String

VERSION 3  Click to view document history
Created on: Jul 22, 2009 3:47 PM by David_L - Last Modified:  Jul 23, 2009 8:25 AM by David_L

 

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.

 

Attachments:
Comments (2)