Controlling blinking rate of LED by three push buttons

Hi, I am trying to control the blinking rate of LED by three push buttons. When I press P1, LED blinking rate is 1s, for P2 - 0.5s and for P3 - 0.25s.
Problems occurs only when P2 is pressed, I cannot change to P1 while P2 is pressed. 
Please anybody can solve me that problem!
Thank you!
Attachments:
LED.vi ‏16 KB

absias wrote:
Hi, I am trying to control the blinking rate of LED by three push buttons. When I press P1, LED blinking rate is 1s, for P2 - 0.5s and for P3 - 0.25s.
Problems occurs only when P2 is pressed, I cannot change to P1 while P2 is pressed. 
Your problem is actually more than changing from P2 to P1.  The third requirement of P3 blinking at .25s wasn't met and once you do add that wait time you will find that the problem is actually going from a higher P to a lower P.
I agree with RavensFan that you should probably start over but you are technically not far off from the solution.  With your current set up you can actually get the behavior you want by placing a sequence structure in every true case that will have the while loop in the first frame and the two case structures in the next frame.
Edit:  I should clear up that technically my solution is incorrect.  If you are at a higher P and select the lower P in between when the VI checks the case structures in the second frame but before it starts the next loop you will not see expected behavior.
Matt J
Professional Googler and Kudo Addict
National Instruments

Similar Messages

  • How do I change the color of the small LED inside a Push Button

    One of my colleagues managed to accidentally change the color of the LED inside the Push Button. He didn’t know how he did it and we couldn’t figure out how to change it back. It’s easy enough to replace the Push Button with a fresh copy from the Buttons & Switches pallet but I would like to know how to control this parameter. Does anyone know how to do this?

    Hi Bob,
    Could you help us help you?
    Please post a VI with the troubling pushbutton so we can see the issue.
    If you are talking about the LED shown in the attached jpg,
    that color can NOT be changed at run-time. Use the Paintbrush.
    Ben
    Message Edited by Ben on 10-14-2005 10:26 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Led.JPG ‏20 KB

  • CAn I make a push button LED blink

    Take the"modern" pushbutton control.
    The LED on the control is on when the control is pressed (true) and off then false.
    Can I make the LED blink when false and be on solid like normal when true?
    I tried the property node "blink" but that kakes the whole control blink (and looks stupid)

    Hi RTSLVU,
    Here is another example of how you can cheat to get it done. It combines a custom Boolean LED and a regular Boolean Push Button. If you don't want to mess with custom controls, you can overlay a regular Round LED Boolean (stretching it out a bit makes it fit better) over the existing LED on the Push Button, it'll just look a little different.
    Thank you for choosing National Instruments.
    Aaron Pena
    National Instruments
    Applications Engineer
    http://www.ni.com/support
    Attachments:
    Another Blinking LED in Pushbutton.vi ‏8 KB
    testcontrol.ctl ‏4 KB

  • Select current line through push button in module pool

    Hi,
    I have created one module pool program with table control. There I have inserted on push button where some logic is deployed.
    Logic :-
    If I push button on current line or any line, that line should be selected in the program. So that I can move that line to next internal table.
    But, it always shows first line.
    Please suggest the same.

    hi amol,
    GET CURSOR only works on the number of table control lines that can be displayed on screen at any one time.  So, if your screen can display only 4 lines, all you'll ever get from GET CURSOR is a number 1 to 4.  
    But your screen also knows which of your table control records is currently displayed as the top line of your table control.  This information is held in field TC_ITEMS-TOP_LINE (where TC_ITEMS is the name of your table control).  By combining these two bits of information, you can find the correct line number of your selected record. 
    For example in the case you describe where you are clicking on line 5 but GET CURSOR thinks it is line 4 because your screen has moved down a record, I would think that TC_ITEMS-TOP_LINE would be 2.  Add 4 and 2 together, subtract 1 and you'll get your correct line number.
    hope it helps,
    vikas

  • G5 won't boot.  White LED lights when power button is pushed, click heard.

    Unlike some other non-booting G5 stories, mine never makes it past this stage. It's a dual 1.8ghz G5 powermac.
    The white LED above the power button turns on when the power button is pressed, a click is heard, but it does not go any further. The LED does not flash at all... no grey screen, no hard-drive access, nada.
    When I push the power button with the aluminum side removed (but with the transparent insert in place), I can see the fans twitch like they are going to start spinning, but then immediately stop.
    I've tried resetting the PMU, replacing the PRAM(CMOS) battery, another identical type of video card, blowing out the dust with compressed air, removing and swapping memory, but always get this same result.
    There was some renovation done in the house recently, but the machine was gently wrapped and moved away from the work. However after 2 weeks of sitting there, it now won't start.
    Any help is appreciated. If the 'clicking' of the power supply is being heard (also clicks when I plug in the power cord), does that mean the power supply is likely working? In which case, is it likely a logic board issue?
    One thing I noticed upon closer inspection, after removing the main fan, is that the higher processor seems darker than the lower one. Is there a way to remove one processor to test for hardware failure?

    Hi subculture,
    A power supply is not to difficult to replace. The lower processor must be removed. It is much easier to lay the Mac on its side. A used power supply can be found on ebay. There are 2 main power connector that connect to the logic board. Those can be tested with a DC voltage meter against a pinout chart for your particular model and can be found on google.
    Powermac G5 2004 Model
    Power Supply P1 Connector
    Pin# Signal Color ------ Pin# Signal Color
    1 +5Vstb Purple --------- 13 GND Black
    2 GND Black ------------- 14 Power ON Green
    3 FANtach White/Yellow -- 15 GND Black
    4 GND Black ------------- 16 Reserved
    5 Reserved -------------- 17 GND Black
    6 GND Black ------------- 18 RTNaud(GND) Black
    7 +12Vaud (12V2) Yellow - 19 GND Black
    8 GND Black ------------- 20 +5V sense Red
    9 +3.3V sense Orange ---- 21 GND Black
    10 GND Black ------------ 22 -12V Blue
    11 GND Black ------------ 23 GND Black
    12 Reserved ------------- 24 Reserved
    Power Supply P2 Connector
    Pin# Signal Color ------- Pin# Signal Color
    1 +3.3V Orange ----------- 9 +5V Red
    2 +3.3V Orange ---------- 10 +5V Red
    3 +3.3V Orange ---------- 11 +5V Red
    4 +3.3V Orange ---------- 12 +12V3 Yellow
    5 Reserve --------------- 13 +12V3 Yellow
    6 +12Vfan Yellow -------- 14 +12V1 Yellow
    7 +12Vfan(12V2) Yellow -- 15 +12V1 Yellow
    8 +25V White ------------ 16 RTNfan(GND) Black
    Power Supply P3 Connector
    Pin# Signal Color ------- Pin# Signal Color
    1 +5V Red ---------------- 5 +5V Red
    2 GND Black -------------- 6 GND Black
    3 GND Black -------------- 7 GND Black
    4 12V2 Yellow ------------ 8 +12V2 Yellow
    Regards

  • Push button in one of the columns of Table Control

    Hi,
    I have a requirement, where i have to display a push button in one of the columns of table control for long text. When user clicks on the control, a pop up has to be appeared in which user should be able to enter some meaning ful description and save it. please suggest me how to do this requirement.
    Best Regards,
    Phani Kumar. S

    Hai,
      You can drag n drop a button to the required column in the table control and give the required parameters like ok_code , name etc.
    You can now place a text field as the heading of the column.
    Now when the user clicks the the button in a row, read the corresponding line in which he has clicked.For that u can use
    get cursor lines wrk_line.
    now u'll  get the data in that row using
    Read table it_tab into wa_tab index wrk_line.
    now u can call the text editor (using FM's READ_TEXT ,EDIT_TEXT and CREATE_TEXT in which the user can enter the meaningful description and save it.
    When u save the text entered save it with a key part of the row that was read earlier(keep it as the text name).
    So now if u need to get the description which was entered earlier u can easily read the text (using READ_TEXT ).
    I hope this will be helpful for u .
    Thanks
    Neeraj

  • Sort up and sort Down push buttons in module pool with table control wizard

    hi,
    i have created 2 buttons for Sort up and sort Down push buttons in module pool with table control wizard
    please any one can help me.
    regards

    Hi
    Following code is to enable and disable the tbl control using two buttons. Just alter the code and for each button write the sort code.
    REPORT  YJAN27_SCREEN                                               .
    TABLES: SFLIGHT, YFLIGHT_28.
    TYPES: BEGIN OF struct1,
          carrid like sflight-carrid,
          connid like sflight-connid,
          fldate like sflight-fldate,
           END OF struct1.
    CONTROLS TBL1 TYPE TABLEVIEW USING SCREEN 2700.
    DATA: OK_CODE LIKE SY-UCOMM,
          CARRID LIKE SFLIGHT-CARRID,                                    "cols in tbl ctrl
          CONNID LIKE SFLIGHT-CONNID,
          FLDATE LIKE SFLIGHT-FLDATE,
          itab TYPE TABLE OF STRUCT1 WITH HEADER LINE,
          cols like line of TBL1-COLS,
          FLAG TYPE I.
    FLAG = 1.
    CALL SCREEN 2700.
    *&      Module  STATUS_2700  OUTPUT
    *       text
    MODULE STATUS_2700 OUTPUT.
      SET PF-STATUS 'BACK'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_2700  OUTPUT
    *&      Module  USER_COMMAND_2700  INPUT
    *       text
    MODULE USER_COMMAND_2700 INPUT.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
      WHEN 'BACK'.
        LEAVE PROGRAM.
      WHEN 'DIS'.                                                         "write code for sort up
        loop AT TBL1-COLS INTO COLS.
           COLS-SCREEN-INPUT = 0.
            MODIFY TBL1-COLS FROM COLS.
        ENDLOOP.
        FLAG = 2.
      WHEN 'ENA'.                                                       "write code for sort down
        loop AT TBL1-COLS INTO COLS.
            COLS-SCREEN-INPUT = 1.
            MODIFY TBL1-COLS FROM COLS.
        ENDLOOP.
        FLAG = 1.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_2700  INPUT
    *&      Module  GET_DATA  OUTPUT
    *       text
    MODULE GET_DATA OUTPUT.
      select carrid connid fldate from SFLIGHT into table itab.
    ENDMODULE.                 " GET_DATA  OUTPUT
    *&      Module  POPULATE_TBL  OUTPUT
    *       text
    MODULE POPULATE_TBL OUTPUT.
        MOVE-CORRESPONDING ITAB TO SFLIGHT.
    ENDMODULE.                 " POPULATE_TBL  OUTPUT
    *&      Module  CHANGE_SCREEN  OUTPUT
    *       text
    MODULE CHANGE_SCREEN OUTPUT.    " use this module if you want to hide the other button
    CASE FLAG.
      WHEN 1.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_ENA'.
            SCREEN-INVISIBLE = 1.
             MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_DIS'.
            SCREEN-INVISIBLE = 0.
             MODIFY SCREEN.
          ENDIF.
       ENDLOOP.
      WHEN 2.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_DIS'.
            SCREEN-INVISIBLE = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'B_ENA'.
            SCREEN-INVISIBLE = 0.
             MODIFY SCREEN.
          ENDIF.
       ENDLOOP.
    ENDCASE.
    ENDMODULE.                 " CHANGE_SCREEN  OUTPUT
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_2700.
    MODULE CHANGE_SCREEN.     " use this if you want to display one button at a time
    MODULE GET_DATA.
    loop at itab WITH control TBL1.
        MODULE POPULATE_TBL.       " populate tbl ctrl
    endloop.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_2700.    " do the sort operations
    loop at itab.
      endloop.
    Hope this helps
    Regards,
    Jayanthi.K

  • Is this how i control frame rate with IMAQdr property node?

    Is this how i control frame rate with IMAQdr property node? if not, can someone point me in the right direction? for some reason, it doesnt work..
    Attachments:
    pic.JPG ‏75 KB

    Please see this related thread http://forums.ni.com/t5/LabVIEW/IMAQdr-Property-No​de/m-p/1642950/highlight/false#M590168
    Matt
    Product Owner - NI Community
    National Instruments

  • Insertion point/caret/cursor blinking rate - how to change? It's killing me

    Hello everbody,
    Just switched and was happy untill installed Office. The caret/cursor blinking rate is just killing me with it slowness.
    How can I change its rate? Any command for terminal? Any third party application? Anything?
    Please

    Since you've just switched to the Mac, these should be helpful: Switching from Windows to Mac OS X and Basic Tutorials on using a Mac.

  • How do I change the cursor blink rate? Firefox 3.6.10 under Ubuntu.

    How do I change the cursor blink rate? Firefox 3.6.10 under Ubuntu.

    See this old mozillaZine forum thread about this:
    *http://forums.mozillazine.org/viewtopic.php?f=38&t=865895
    ''(please to not post in such old threads)''
    See also:
    * http://kb.mozillazine.org/about:config
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • LED push button

    Hi,
    Need help in resolving below given 2 issues:
    1. I have a string Combo box(dropdown) having options A,B,C &D. But i need to make these options as  LED push buttons. Is there a way to make a boolean to pass a string value? When pressed A, it should pass the string associated with it(say "Pressure") to the output and when pressed B, it should pass string "Temperature".
    2. I have a device say P1.  it polls for status and value in 2 iterations of a for loop(iteration 0 checks status and iteration 1 checks value). when I create a table, i get 2 entries of the same device, one with status and other with value. I want both value and status in a single entry of the device in the table. Can this be done? If yes then I need to make a subVI of this so that I can make a "show table" button in the mainVI which will display the table only when clicked.
    Please let me know if the above details are not clear. Looking forward to your suggestions and inputs.
    Thanks & Regards,
    Sushruth.
    Solved!
    Go to Solution.

    Thanks a lot for the inputs. Q1 has been resolved. I just made it into an event case. Something like this:
    Its working as I wanted. Regarding the Q2, I will upload the code as soon as possible.
    Regards,
    Sushruth.

  • Push button column in table control

    Hi,
    I have to add a few push button columns into table control. This columns has to be placed between fields of DDic table. How to do this? Shall I create new DDic structure with all the needed fields  from DDic table and add also fields for push button columns? Which data element shal I use in this case for push button field? Or is the better solution to add DDic table fields one by one and then using drag and drop technique to add push button column behind it?
    Thanks.

    Hi ,
        Your Last option is better first add columns into DDIC table then  Drag and
    Drop it on table control .
      That will better definitely.................................
    if useful rewards the point..............
    Thanks .
    Nilesh Jain

  • Error in table control push buttons enhancement....

    hi all,
    iam creating a table control with some push buttons namely Insert, terminate in a enhancement while clicking terminate iam getting error message that
    " Flow control: Entry SAPMIEQ0, * ,           * is missing in T185V " can any one help me to solve this issue.
    Thanks in Advance.
    Prem.

    Even in sm30 also its not allowing me to maintain that T185V table. its taking me to VFBS transaction code.pls help me in this issue
    Thanks
    Prem.

  • Toshiba Tecra A7 don´t "power on" only blink the batery led 10 times

    Please help
    Toshiba Tecra A7 don´t "power on" only blink the batery led 10 times 
    Thanks
    Xavier
    [email protected]

    Can you check the laptop's full model and part numbers from the label on the bottom? Don't include the serial number.
    Turn off your laptop, unplug all wires, remove the battery, and hold the power button for thirty seconds. Afterwards, reattach the battery and connections.
    - Peter

  • Making custom controls blink

    Hi,
    I've been trying to build some custom boolean controls and indicators, which works fine, except most of their properties are now useless. In particular, i can't make them blink anymore.
    I understand an imported bitmap wouldn't be able to blink, so here's my question : is there a way, or a tool, that will allow me to make custom controls as useful as regular controls ?
    Any clue or insight appreciated.
    Silent.

    I have never found a program that allows the user to create LabVIEW pretty controls. I do have a couple of workarounds though.
    You could put the custom controls on top of square classic control and color the classic contol to be the background color. Then you can make the classic control blink to draw attention to your control.
    You can also use a classic picture ring that is colored transparent and programatically toggle to the binking image.
    Variation on the theme:
    You can import a PNG image with transparent colors and place it on top of another control which blinks allowing for the transpartent part of the image to become colored.
    Attachments:
    blink.vi ‏15 KB

Maybe you are looking for

  • How do you off voice control on iPhone 4?

    Hey, recently my phone has this problem that the voice control kept activating itself when I am using my phone sometimes and even when I was away from it. It automatically calls a random someone from my contacts after activating itself, so it gets ve

  • Photo web gallery in dreamweaver - problem

    while creating a photo web gallery in dreamweaver (commands - create photo web album) an error occurs - when I browse pics by choosing my images folder, program says it's empty! It cant see the files! these are normal jpg and adding these pics worked

  • Can't open itunes,even after un-installing and then re-installing!

    I keep getting the following error message when trying to open itunes on my pc. 'The folder "itunes" cannot be found or created, and is required.The default location for this folder is inside the "my music" folder.' This error message appeared even a

  • N96 since V12 update - can't change snooze time

    I'm having a problem with my N96 since updating to v12.043. Regardless of what I set the alarm snooze time to, the phone snoozes for 5 minutes. I've changed the snooze time in "Settings | General | Date and time" a few times, rebooted the phone, etc,

  • Updating iTunes from 10.1 to 11.whatever. Desperate for help

    I have seriously avoided update for a while now. I guess I still have 10.1 from 2010, and I really want to update it to the newest 11.1 or whatever it is. I tried just redownloading the whole program from online, and it said I need at least 10.5 to u