r/LabVIEW • u/sadiek • Jan 21 '17
Labview dice
Hi all, could anyone help me create a dice labview simulation? with 7 leds, and 1 "gamble" button. when the button is pressed, the leds should display a number.
1
Jan 21 '17
You want to make a 7 segment display?
The toughest part of this is going to be converting your number into the 7 bits necessary to display the right number. The complicated way to do this would be to solve a karnaugh map for each segment and each bit of the input, like so:
| Number | Value | Top Segment |
|---|---|---|
| 001 | 1 | 0 |
| 010 | 2 | 1 |
| 011 | 3 | 1 |
| 100 | 4 | 0 |
| 101 | 5 | 1 |
| 110 | 6 | 1 |
That gets nasty though. Much nicer is to just build a lookup table for each segment.
1
u/digiajay Jan 23 '17
If you're still looking for it. I have made a gamble VI for you. Here it is https://drive.google.com/file/d/0B-PimJ4T_xZSbmQwTHowZkwybmM/view?usp=sharing
1
u/sadiek Jan 21 '17
I fixed it with leds. :) thanks for your help anyways :D