From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

turn on a number of leds

Go to solution



I want to do a sub-vi that does the following:

-User inputs a number (x)

-Turn on x number of leds



0 Kudos
Message 1 of 7

just for those who may have the same doubt...


0 Kudos
Message 2 of 7

Next time you post, you should provide a much more detailed explanation of what you want.  There is no way anyone could guess from your message that that is what you wanted to achieve.

0 Kudos
Message 3 of 7

I'm still trying to figure out if he answered his own question, or whether there's still a question here?

0 Kudos
Message 4 of 7
Accepted by topic author Baioneta

A much simpler way to accomplish the same thing is the Initialize Array function: set the value to a true constant and the size to the number of "LEDs" you want turned on.

Message 5 of 7

I would avoid converting doubles to boolean arrays. You should be working with integer values. It is possible you will not get the desired result depending on the fractional value of the double.

Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 7

thanks nathand, that way of doing it is much better because now i can hide the "off" leds by controlling the number of columns of the arraySmiley Happy

0 Kudos
Message 7 of 7