10-11-2018 04:59 AM
Hello there ,
I have made a single digit display using case structure but i need to display 3 digits
can anyone help me
10-11-2018 06:20 AM
For integers you can split number into digits
10-11-2018 07:01 AM
Hi akshay,
some comments on your VI:
- NEVER delete the label of controls/indicators! NEVER hide the label in the block diagram!
- use a cluster to bundle the boolean indicators of your 7-LED display. Then use a cluster constant to set the indicators.
- the "Numeric" control needs a better (aka "more descriptive") label, and should be an integer type!
- use an array of those clusters mentioned before and a simple IndexArray function instead of creating a case structure with 10 cases and lots of boolean constants…
i need to display 3 digits
After placing those LED indicators in a cluster you can easily create an array of those clusters to allow more than one digit…
(Simple generic rule: when you need a data element more than once you should use an array of those data elements!)
10-11-2018 07:15 AM - edited 10-11-2018 07:23 AM
Here is a little help on your homework. Instead of using a case structure, I like the idea of a Look-up Table. Instead of having 7 seprate LED segments, combine them into a cluster. That way you can create an array of clusters to display all digits of your number. Between this and Artem.SPb's idea (edit: and GerdW's ideas), you should be able to do the rest.
Edit: a LUT of Cluster constants as GerdW mentioned would be a lot easier than what I did.
10-12-2018 12:26 AM
Thank you so much for the help
but i'm getting a broken wire
10-12-2018 01:27 AM
10-12-2018 02:09 AM - edited 10-12-2018 02:11 AM
You are indexing Single Element for Display but the Indicator is array.
Change array to Element (LED Display)