Number to Boolean String in LabVIEW

제품 및 환경

이 섹션은 예제 생성에 사용된 제품과 OS를 표시합니다.

아래의 제품을 비롯한 NI 소프트웨어를 다운로드하시려면 ni.com/downloads를 방문하십시오.

    소프트웨어

  • LabVIEW

코드 및 문서

첨부파일

모두 다운로드

Overview

This example converts a Number to Boolean/Binary String

 

Description

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 attached code.

 

Requirements

LabVIEW Base Development System 2012 or compatible

 

Steps to Implement or Execute Code 

  1. Enter the Number to be converted to Boolean string
  2. Enter the Minimum width, If width is larger than needed, zeros are added on the left. If width is inadequate, decimal integer string is as large as necessary.
  3. Run the VI

 

 

Additional Information or References

VI Block Diagram

5782.PNG 

 

 

**This document has been updated to meet the current required format for the NI Code Exchange. **

 

NI 커뮤니티에 있는 예제 코드 교환의 예제 코드는 MIT 라이센스로 라이센스가 부여됩니다.

의견
Knight of NI
Knight of NI
날짜

See here for a simplified version.

David_L
Active Participant
Active Participant
날짜

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