Example Code

Number to 3.2 seven segments display

Code and Documents

Attachment

Download All

The below code is an example of how to display a number with 2 digits of precision on a 5 digits, 7 segment display.

This is useful if you do not want to use the special "7 segment" font and make in this way your vi looking the same on another computer.

This actual code is displaying numbers between -99.99 and 999.99 but it can be used as an example to display any kind of number.

The code is very easy and is using a predefined array of clusters with Booleans arranged as 7 segment characters from 0 to 9.



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

Contributors