How to use a slider to turn on and off lights

Hi guys. i am fairly familiar with Labview now but cant seen to get my head around this problem. i have a slider which is numbered from 1 to 10. below the slider i inserted 10 LED lights. my aim sis to use the slider to turn on and off the lights. for an exmaple, when i set the slider to one, the light on the far left should go on. when i set the slider to 2, the first light should go on and the second light next to it should go on, and the pattern continues. i thought of using the number to array boolean but it didnt seem to do the trick. could you please help me out. i have attached the basic layout of how i wanted the objects to be arranged
kind regards
joe
Solved!
Go to Solution.
Attachments:
led control.vi ‏7 KB

wow! simplicity at its best! thats really straight forward to understand. i think you are right about making complicated circuits. the reason why i had asked to know how to do this was because i wanted to learn how to control motor directions using a slider. so after i thought i had got the easiest way of giving out 2 different outputs using a slider, i replaced the lights with switches that changed the direction of the motor. i successfully did this for the first motor and it rotated fairly well, but wanted to control 4 in total. so i simply copied and pasted the code and re-asigned the switches to different motors. when i did this, the results did work BUT the motors went very very slow. the movement was not steady and kept skipping. i think this its due to the coding being overly complicated thefore causing a serious lag. if you could please have a look
kind regards
joe
Attachments:
controling test.vi ‏29 KB

Similar Messages

  • When I use AC Adapter, Ipod turns on and off

    I will try to explain this the best I can, here goes...
    When I use all the battery in my ipod, so that it is completely dead, and I attempt to plug it into the AC adapter, the ipod turns on and off. I can hear the hard drive clicking on and off. It will not stay on; it just keeps doing this. However, if I plug the ipod into my computer, it will charge.
    Do people think that this is a problem with my ipod or with the AC adapter?
    I'd appreciate any feedback or if people have had a similar problem, let me know.
    Thanks so much.
    Gateway 450XL   Windows XP Pro   Pentium 4, 1.6 Ghz

    Welcome to Apple Discussions!
    Does it charge normally when connected to your computer?
    Which iPod do you have/are you using an Apple Power Adapter?
    Identifying different iPod models
    btabz

  • How do i fix my iphone turning on and off by itself?

    My iPhone's battery got stuck due to overcharging. When the battery drained out, i plugged in the charger and it would turn on until the apple logo appears and then turns off. This happens till the charger is plugged in. When the charger is plugged out it totally turns off and when i try to turn on it would'nt. How would i be able to fix this problem?

    1. why?
    Possibilities are:
    a. Corrupt data or code during the update.
    b. Hardware failure
    4. will any "geniuses" be able to do anything if I bring it in the store?
    Kinda hard to say, not having your phone to inspect and not being one of them.
    5. If I try restoring it, what do I need to know about restoring?
    Restore first from a backup, and if needed as a new iPhone. When restoring from a backup, and subsequently syncing, no data will be lost. Restoring as new + syncing will lose all settings, app data and messages.
    6. if restoring doesn't work, what recourse do I have?
    See the "geniuses". If out of warranty, take it to a 3rd party iPhone repair center

  • How to Set Automatic to turn on and off at specified time my TV with STB

    It seems very frustrating talking with Verizon tech support, that's why I turn to you guys to find if anyone knows the answer to my question above.,from my experience calling verizon for my tech support regarding fiosTV and most of my experience from Verizon are either inept and giving the customer the run around by keeping you on hold for the longest and not having the answer after all the time I spend with the tech on the phone or they will tell you that the that there is no such thing; and when you call again when you get another tech on the phone you get completely different answer if not an inept answer. 
    My Specific question is, if  I turned off my STB (top box) and my TV at a particular time; and I like my TV with STB to turn on at a specified time ( example I turned off my STB and TV at 9:00 PM ) and would like my TV with the STB to be turn on like 11:00 PM to turn off at 12:00 midnight by itself, not to record  but just to turn on as reminder and to serve as power saver incase I fall asleep ( this is just example scenario). How would I do that? The manual of either remote control or the STB does not provide that information. My television manual say the TV can but I can not turn it on automatically with the STB connected.
    I called Verizon tech, he first sounded inept and sounded like he just talking from a scripted lines, and would not tell me straight forward that he does not know the answer; I  explained that I switched to Verizon Fios for its claim in high and advance technology as they compare themselves by far higher in technology as compared with Cable or direct TV, and with Cable Vision I was able to used the above automatic turn on and off with the remote; I asked for his supervisor or maybe more expert tech support, He turned over the call to his supervisor, who told me that the STB or the remote Fios TV does not have that level of capability which sounded to me like a joke, he also told me that the STB can not be turn on and off because STB is always set as on; I told him I can see the green light turns on and off on the STB each time I press the ON button on the Verizon Remote; he defended that its always on because the timer is ON, and he told me instead FIOSTV has another feature that although it will not turn the feature on and off automatically, it will serve as reminder, I asked him How to carry out that function, the tech supervisor said  to me to just press the record button on my remote, which I know right away that it will just record, and  I told him that its not what I want to accomplish, this Tech Supervisor insisted that it will not record but will set to notify me, but surely it did record and it just wasted and used my DVR memory capacity the time when he put me on hold for a long period of time, I knew it recorded because the red button on the STB/TVR was on., and it did not notify me in anyway what time the TV and STB will turn on. That was a complete  waste of time, instead of him getting the issue to higher level of their tech support and try to research thru and get back to the client. To me, simple feature as this, is such absurd to claim that fiosTV has more advance features than others, where infact they can not even have their tech support answer such simple question.  
    Any one here has any idea, please help.

    The set top box does not offer any auto on or auto off feature. 
    you can only do that if your TV offers the feature. 
    If neither your TV nor the STB offer that feature (in this case the stb does not offer) then you can go to a radio shack or a similiar store and purchase a AC timer.  they make them and you plug them into your wall, they are very cheap.
    I have had directv and fios and neither of my systems did an automatic on or off. 
    BUT my samsung TV upstairs does have that feature (auto on and off)   and I have not checked my mitsubishi downstairs. 
    so you may want to check your settings on your TV to see if it will do it, like my samsung does. 

  • My backlit keyboard will not go off automaticaly i have the box checked but it still doesn't turn on and off. i am having to do it using the f5 and f6 keys. anyone know how to make it work automatically in low light?

    i am having a problem with my back lit keyboard on my 13in mac book pro. i have the box checked in the keyboard setting for auto so the keyboard should turn on and off in low light conditions but it doesnt. anyone know how i can getit to work properly?

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • My iphone 5 screen needs to be turned on and off twice before I can slide the screen to unlock it.

    My iphone 5 screen needs to be turned on and off twice (hit the top button or home button, then turn off the screen again, then hit one of the buttons again) before I can slide the screen to unlock it. Also, when I was using it yesterday, the volume on my music was sliding up and down by itself, it clicked on albums by itself and wouldn't register my touch, the song kept pausing and playing by itself, and when I backed out of the app, all my running apps started sliding back and forth across the screen as if I were running my finger back and forth extremely fast. It also then opened the phone app, started to call one of my contacts, and wouldn't let me hang up. My phone is relatively new (got it back in June) and I haven't dropped my phone at all, haven't gotten it wet, etc... The only thing I've done to it recently is install iOS7. Does anyone know why this is happening and how I can fix it?

    Took my phone to the Apple store this week and they told me it was a hardware/screen malfunction. They replaced the screen for free since it was under warranty. Now it works fine again!

  • How do I make PDF with layers that can be turned on and off?

    I am creating a map in Indesign CS4 and I want to have different layers that can be turned on and off.  Layers like different places and names that can be controled in Acrobat (and Reader).  Im not sure how to go about this and if this is something created through Acrobat or through InDesign.  I didnt see anything in ID when converting to a PDF that would save layers in that way so I assume its done in Acrobat Pro?  Just need and idea of where to start

    InDesign CS5 to Acrobat 9 Multimedia and Interactive Workflows by Dona Baker
    Creating and Using Layers (OCGs) with Acrobat JavaScript by Thom Parker

  • I can't find out how to turn on and off the title of the song, name of artist, and time remaining to a song.

    I can't find out how to turn on and off the window above the iTunes list that includes the title of the song, name of artist, and time remaining to a song. It seems to appear rather randomly on my iMac.

    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • This message keeps coming up when I log in to my email ---In order to use Yahoo Mail, please turn Private Browsing off. Please go to Settings » Safari » Private Browsing, and turn it off

    this message keeps coming up each time we try to log in to our email. In order to use Yahoo Mail, please turn Private Browsing off. Please go to Settings » Safari » Private Browsing, and turn it off"
    I have gone to settings but you cannot turn off the private browsing anywhere
    can someone help,us out?
    thanks

    You turn private browsing off on the Safari page. Tap the + sign in the upper right corner, then tap private in the lower left corner. You know you're in private when the top of the screen is dark.

  • How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?

    Hi!
    Question about the problem mentioned in subject.
    I have configured that JNLP opens with 1.5 version, both versions are enabled in Java Control Panel Runtime Settings but when I try to start a desktop java console says:
    Java Web Start 1.5.0_22
    Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
    And the opening of the desktop creates an exception:
    Java Web Start - Invalid Argument Error
    TooManyArgumentsException[ Too many arguments supplied: {C:\WINDOWS\Temporary, Internet, Files\Content.IE5\....
    I'm trying to open my desktop with 1.5 version and other programs with 1.6 version. What is it that I still need to do? I'm kind of confused with this. Some of my collagues have succeeded with this and some doesn't, with the same configuration.
    So the question is, how to use multiple JREs with IE8 so that one application uses 1.5 version and others 1.6 version?
    Br,
    Katri
    Edited by: ka**** on 09-Mar-2011 01:16
    Edited by: ka**** on 09-Mar-2011 03:16

    ka**** wrote:
    ..Question about the problem mentioned in subject.No "Using multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8" is a statement. To transform it to a question would be something like "How to use multiple JREs (1.5.0_20 and 1.6.0_07) with Internet Explorer 8?".
    Once you can come up with an actual question, I might look at this more closely.

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • How to use the Variants in SAP Transportation and what is its use ?

    Hi experts,
    How to use the Variants in SAP Transportation and what is its use & How to create a variant in SAP ?
    Can anybody answer this ?
    Regards,
    Shakti

    Hi,
    If you are asking about "slection vairants" in SPRO settings of "shipment cost document" then
    When it is activated,
    each user can have his own slecetion  and list criteria for
    1. List shippment costs:calculation
    2. List shippment costs: settlement
    This can be directly saved from VI01 screen by the user.
    from environment> lists
    This is user specific only.
    Hope this helps.
    Regards,
    Sharan

  • My iphone 5 does not turn on anymore.  when i plug the charger in the apple icon turns on and off but the home screen never shows up.what do i do to fix it? how can i get my info back?

    My iphone 5 does not turn on anymore.  when i plug the charger in the apple icon turns on and off but the home screen never shows up.what do i do to fix it? how can i get my info back?

    from the information you provided i can't tell if it is a hardware problem or a software problem. I do have an idea though, try to press your home button and lock button at the same time.

  • When I try to open my Yahoo mail in safari, I get a message which states:" In order to use Yahoo mail, please turn Private Browsing off. Please go to Settings Safari Private Browsing, and turn off" The problem is my ipad does not a Private Browsing switch

    When I try to open my Yahoo mail in safari, I get a message which states:" In order to use Yahoo mail, please turn Private Browsing off. Please go to Settings>Safari>Private Browsing, and turn off" The problem is, my ipad does not a Private Browsing switchat this location.

    With iOS 7 on the iPad, you turn Private  Browsing on and off by tapping the URL field.  The screen that  opens up has your bookmarks on it.  In the bottom left corner is a hot button marked 'PRIVATE'.  Tap on the word 'PRIVATE' to turn private browsing on or off.  Yeah, there aren't any instructions anywhere that I can find to do this, and if you follow Yahoo's instructions, they don't work.  This doesn't happen with the previous Apple OS, and you can restore your iPad to the older OS. 

  • How to turn on and off pop up blocker on mac notebooks

    how to turn on and off pop up blocker on mac notebooks?

    Safari / Preferences / Security. It's a checkbox.

Maybe you are looking for

  • Two different projects in the same machine sharing some objects

    Hello dear all I got this scenario: Same machine; 2 clients (70 and 80); 2 Projects -     AR Payment Process (prototype) for an existing company -     New company configuration Coding Block (e.g.: for experiences in AR - prototype ) In the end - same

  • How to get the HttpServletRequest object in a jsp

    Hi, I am a little confused here. Am trying to use the HttpServletRequest object in my jsp. I have set up just a simple test page jsp. How can i use the HttpServletRequest object to get some information about the request for example using the method g

  • User Exit/ BADI to validate input in LT06

    Dear Gurus, I would like to ask what user exit/BADI i could use to validate or check the input value before creating the material document in LT06? I have tried MWMTO001 and put break point inside FM EXIT_SAPLL03T_001, but the break point is not call

  • How to convert binary data to PDF and attach to the particular po

    our client wants to attach the pdf coming from portal as attachment to that particular PO. From portal the pdf will come in binary format. Find how will we convert that binary data back to pdf and attach to the PO in R/3?

  • [Solved] Severely broken system after update

    I need help with system that doesn't boot after update. I tried to make pacman -Syu on a system which was not updated since 2010 xmass... probably being overwhelmed by number of issues I did something wrong, but now the system is in a very bad state.