04-26-2018 08:25 AM
Hello,
I am trying to make a 7 segment counter using labview with 4 outputs as I want to connect those 4 outputs with my other part of the project. Basically I want to make a 7 segment - 4 bit counter - 4 bit output mod 10 using Labview.
Thanks.
Solved! Go to Solution.
04-26-2018 08:41 AM
04-26-2018 08:51 AM
You say "4 bit counter, 4 bit output mod 10". Did you mean "4 digit decimal output"? Note that "bit" means "binary digit", i.e. 0 or 1.
The solution is fairly simple. You need a 10x7 2D array of Booleans, with the rows corresponding to the decimal digits 0..9 and the columns corresponding to the segments, set T/F depending if the Segment is On or Off. The problem then becomes taking an Integer (which should be in the range of 0 .. 9999 -- you might want to check and raise an error if out of range) and reducing it to an array of 4 digits, 0..9, to be presented via a For loop to return the corresponding 7-bit (because you have an array of 7 Booleans, or "bits") Segment value.
Try coding this yourself. If you have viewed (and practiced) the introductory material on LabVIEW, you should have no problem.
Bob Schor
04-26-2018 08:53 AM
Thanks !
04-27-2018 08:47 AM
I need to generate a random number using this design. Can you help as soon as possible.
04-27-2018 09:27 AM
Wow. I looked at your PNG, and said "Someone doesn't understand Logic rules", not to mention that an incomplete picture such as the one you showed conveys little information other than you don't understand logic rules.
Why do you need help generating a Random Number? Have you looked at the functions on the Numeric Palette?
If you want to Learn, you must put in your own Effort.
Bob Schor