09-22-2014 10:01 PM
Hello,
I am trying to write a VI where a dial controls how many leds are lit up at a time. For example if dial is set to 2 then 2 leds are lit up. I have attached my VI as it sits now. I am unsure how to go about this anymore since i couldnt get the case structure to work, unless i just don't know what I'm missing or need.
Thanks!
09-22-2014 10:11 PM
Nevermind figured it out.
09-22-2014 10:14 PM
@steggets wrote:
I have attached my VI as it sits now.
No, you only attached a picture. Please attach the actual VI.
Since you cannot light a fractional number of LEDs, the control should probably be an interger. I would also use an array of LEDs, much simpler! You also need to slow down your loop. Currently it spins millions of times per second. You also don't need a case structure.
Try it!
09-22-2014 10:24 PM
09-23-2014 06:25 AM - edited 09-23-2014 06:33 AM
@steggets wrote:
Don't know how to use arrays otherwise I would!
Do you want to learn how to use arrays? Try them, you'll like them. 🙂
09-23-2014 07:10 AM
Or convert the numeric control value directly to an array indicator: