06-28-2012 06:47 PM
Hi,
I want to do a sub-vi that does the following:
-User inputs a number (x)
-Turn on x number of leds
Solved! Go to Solution.
06-28-2012 07:34 PM
just for those who may have the same doubt...
06-28-2012 07:44 PM
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.
06-28-2012 09:33 PM
I'm still trying to figure out if he answered his own question, or whether there's still a question here?
06-29-2012 12:09 AM
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.
06-29-2012 12:53 AM
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.
06-29-2012 07:30 AM
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 array