Example Code

Convert Numeric to 7 Segment Boolean Array Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI generates a 7 segment Boolean array for the number provided by the user

 

Description

A seven-segment display is a form of electronic display device for displaying decimal numerals. Seven-segment displays are widely used in digital clocks, electronic meters, basic calculators, and other electronic devices that display numerical information.This VI takes an integer, along with a few other optional parameters, to generate a 7 segment Boolean array for the number. It is useful for both creating creative interfaces, and communicating with hardware with 7 segment displays.

 

Requirements

LabVIEW Full Development System 2012 or compatible

 

Steps to Implement or Execute Code

  1. Insert Number
  2. Run the VI

Additional Information or References

VI Block DiagramConvert Numeric to 7 Segment Boolean Array LV2012 NI Verified BD.jpg

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

Al B.
Staff Software Engineer - TestStand
CTA/CLD

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Todd S.
NI Employee (retired)
on

this looks great!  could you please rename your attachment to include the LabVIEW version?  "_lvXX.zip" is fine.

Todd S.
LabVIEW Community Manager
National Instruments