How to automatically off the push button

how can i set the push button to be off automatically after meet certain condition.
i attached simple example just to represent this problem
Solved!
Go to Solution.
Attachments:
ex.vi ‏7 KB

smercurio_fc wrote:
I think the user is actually asking how to stop the outer loop if the Stop button is pressed or the iteration count reaches 10.
To poster: You need an OR condition on the outer loop's conditional terminal. One OR input comes from the Stop button. The other comes from the case structure. In the False case you wire out a False Boolean constant. In the True part you wire out a True. You could also wire the OR input to the Boolean control directly since this amounts to the same thing.
Code comments:
Do not create greedy loops. Use a small delay so you don't starve the CPU.
I think you want the inner loop's condition terminal to be "Continue if True".
You can use the Increment function rather than using an Add function and a constant of 1.
You don't actually need the inner loop at all. You can use a Feedback Node.
Adding to these comments it is important to note that if you read the value of a button to control stopping a loop you should always ensure that you read it AFTER you execute all of your code in the loop. If you don't you can easily end up with an "off-by-one" execution since the button will get read very early in the loop iteration and it will use that value when deciding if the loop should exit or not. It won't use the value of the button at that instance in time (end of teh loop iteration).
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • How can I resolve the push button dot issue in oracle forms 10g..?

    Hi All,
    We have migrated to forms6i to forms10g, in 6i all the push button labels are displaying properly, but in 10g forms its giving dots like this … after displaying some characters. I guess its width problem but how come its changing in 10g alone.
    Kindly give me any workaround to resolve this issue
    Thanks in Advance
    Thangaraj.

    Hi All,
    We have migrated the forms 6i to forms 10g R2.We are facing push button issue like,the lable is displayed in the button is reduced.Assume the button's label name is Cancel.Actully it is displaying like Can.....Due to Java used in forming the buttons.We have forms count nearly 300.We have diffent size buttons.
    We have solution like
    1.Manually
    2.PC Creation
    3.Java Class and Jar Files
    4.JDAPI
    5.basejini.htm
    The method five,we have tried.But there is no changes after this changes also.
    Can you guys please let us know the correct menthod(with steps 1 by 1) to do this in quickly.
    2.There are look and feel 2 types oracle and generic,rather than this do we have any other type.We are looking for any cusrtomized settings in config files.
    Thanks in Advance.
    Regards,
    GR

  • How to inactive the push button on tool bar of alv report

    hi masters,
    i m working on the ALV interactive report, in this report i have to do 2 different operation on 2 screen.
    eg.- on first screen i have the push button for 'data' and on second screen i will have the push button for 'upload'.
    in this i don't want to give the 'upload' button on first screen and same i don't want to give the 'data' button on 2nd screen.
    i tried with using the 2 different gui status and 2 different PF-STATUS but its not working.
    anyone can tell me how i can deactivate the 'upload' button on first screen and how i can do same for 'get' buttton on 2nd screen.
    regards,
    vicky

    HI Vicky ,
                      if u want an interactive ALV report , there are lot of forums already having the solution for that , but let me give u the solution anyway.
    In the function module "REUSE_ALV_GRID_DISPLAY" , import parameters
         I_CALLBACK_PF_STATUS_SET          = 'FLIGHT'
         I_CALLBACK_USER_COMMAND           = 'BUTTON_CLICK'
    has to be supplied to this function module . The PF status is where u hav created the two buttons , that PF status has to be given here .If the user clicks on the button then it is handled by the form routines . Inside the sub-routine based on the button the user has selected u could perform the action.
    FORM FLIGHT    USING RT_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'FLIGHT' EXCLUDING RT_EXTAB.
    ENDFORM.
    Here the "Flight" is the PF_status .
    FORM BUTTON_CLICK USING UCOMM type SY-UCOMM
                           SELFIELD type SLIS_SELFIELD.
      CASE UCOMM.
        WHEN 'BUTTON!' .
    write ur code for button 1.
      WHEN "BUTTON"
      *Write ur code for button2 .
    end case.
    endform.
    for any queries reply back.
    regards

  • How do I turn off the Power button Lockout on my HPw1858 monitor?

    How do I turn off the Power button lockout on my HPw1858 monitor?
    This question was solved.
    View Solution.

    Hi,
    Power Button Lockout is displayed.
    The monitor's Power Button Lockout function is enabled.
    Press and hold the Power button for 10 seconds to unlock the Power button function.
    If the above doesn't work then try a monitor reset.  Unplug the monitor’s power cord and hold down the monitor’s power button for 30-60 seconds. Plug the monitor back in and power it up.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • How to add the push button on the apllication tollbar of IL02 tcode

    Hi Friends,
    I have to add the push button on the application tool bar of the IL02.when that push button is pressed then some operation to be performed.Could you please suggest how to add.Is there any screen exit if yes what is that.
    With out screen exits if there is any way ?
    Thanks and regards,
    shyla

    HI Vicky ,
                      if u want an interactive ALV report , there are lot of forums already having the solution for that , but let me give u the solution anyway.
    In the function module "REUSE_ALV_GRID_DISPLAY" , import parameters
         I_CALLBACK_PF_STATUS_SET          = 'FLIGHT'
         I_CALLBACK_USER_COMMAND           = 'BUTTON_CLICK'
    has to be supplied to this function module . The PF status is where u hav created the two buttons , that PF status has to be given here .If the user clicks on the button then it is handled by the form routines . Inside the sub-routine based on the button the user has selected u could perform the action.
    FORM FLIGHT    USING RT_EXTAB TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'FLIGHT' EXCLUDING RT_EXTAB.
    ENDFORM.
    Here the "Flight" is the PF_status .
    FORM BUTTON_CLICK USING UCOMM type SY-UCOMM
                           SELFIELD type SLIS_SELFIELD.
      CASE UCOMM.
        WHEN 'BUTTON!' .
    write ur code for button 1.
      WHEN "BUTTON"
      *Write ur code for button2 .
    end case.
    endform.
    for any queries reply back.
    regards

  • My volume buttons won't work. Music plays when I get a phone call. That is the only time my speaker makes noise. My settings are how they should be, the top button is not on silent, I've shut my phone off many times, I've totally restored my phone. Help

    My volume buttons won't work. Music plays when I get a phone call. That is the only time my speaker makes noise. My settings are how they should be, the top button is not on silent, I've shut my phone off many times, I've totally restored my phone. Help

    Genius reservation http://www.apple.com/retail/geniusbar/

  • My  BEATS speakers are connected to my Mac but I have no audio and do not understand how to turn off the speaker. I press the power button and not shut off. And the white light behind me indicating that this synchronized, does not turn off ever.

    My  BEATS speakers are connected to my Mac but I have no audio and do not understand how to turn off the speaker. I press the power button and not shut off. And the white light behind me indicating that this synchronized, does not turn off ever.

    Hello Sabroso007
    Check out the article below to troubleshoot the sound output to your Bluetooth speaker. Check in System Preferences > Sound to see what the output is set to.
    OS X Mavericks: Set up Bluetooth audio devices
    http://support.apple.com/kb/PH14217
    Regards,
    -Norm G.

  • How to suppress the Push button in a custom screen

    Hi,
       Is there any procedure to suppress a Push button in a custom Screen based on a condition.
    For eg: If Material is not initial.
                then display the Continue button.
             else not.
              endif.

    Hi,
      If the push button is not on the application toolbar, then follow the below procedure...
    1. Assign the MODIF-ID for the button in the screen. Assume that MODIF-ID for the button is SC1.
    2. In the PBO of the screen add the below code...
    IF not MATERIAL is INITIAL.
    LOOP AT SCREEN.
       IF SCREEN-GROUP1 = 'SC1'
        SCREEN-OUTPUT = 1.
        SCREEN-ACTIVE  = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    ELSE.
    LOOP AT SCREEN.
       IF SCREEN-GROUP1 = 'SC1'
        SCREEN-OUTPUT = 0.
        SCREEN-ACTIVE  = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    ENDIF.
    Regards,
    Vara

  • How do I use a push button digital trigger with my 6034E DAQ board?

    I am only a Lab View toddler.
    I am currently using a push button, wired to PFIO/TRIG1 and DGND, with a anolog trigger. However noise is causing my program to be triggered. I was told that a digital trigger would help to reduce the random triggering. How do I create a push button digital trigger?
    Thanks

    implement a schmitt trigger.
    Struggling with Labview wrote in message
    <[email protected]>...
    >I am only a Lab View toddler.
    >I am currently using a push button, wired to PFIO/TRIG1 and DGND, with
    >a anolog trigger. However noise is causing my program to be triggered.
    >I was told that a digital trigger would help to reduce the random
    >triggering. How do I create a push button digital trigger?
    >Thanks

  • How to switch off the Wireless Transmitting of the xDock for the iPod?

    Hey,
    Can anybody help me how to switch off the wireless streaming of the xDock transmitter for the iPod? I tried to do it by resetting and I already read the FAQ but nothing seemed to work...
    Thanks for your help. ;-)
    Hi,
    Kann mir irgendjemand sagen, wie ich bei meinem xDock Transmitter f?r den iPod das wireless streaming ausschalten kann? Ich habe bereits versucht das Ger?t zu resetten und habe das FAQ gelesen aber nichts hat geholfen...
    Vielen Dank im Vorraus f?r eure Hilfe ;-)

    turn it into standby mode
    unplug the power supply from the x-fi dock
    press the volume controller and hold it while plugging the power supply
    the link control led on the backside will glow shortly and and turn off
    thats it
    to reactivate it press both the forward and backward wind button for at least 3 seconds
    But I think, this is really a shame, that the WLAN network is unusable when using the x-Fi wireless function.

  • Service Order creation from CRM Web-IC hwen user click the push button.

    Hi experts,
                        I need to create the service order (in IS-U) when the user will click the push button in CRM-Web-IC.
    I know the RFC for the same to be used in IS-U but for that I need to get order type which is mandatory importing parameter for RFC.
    I know BP, Premise & Installation.So,How can I get order type for that?
    Reply will be greatly appreciated.
    Thanks in advance.
    Regards,
    Abhay.

    Hi Gagan
    Could you please share with your solution, i am kind looking help in same are. We are using CRM 7.0, but i can not find BOL component which is ISUSRV.
    My requirement is to create Service Order from Webclient, example meter problem reporting, etc
    Please kindly reply or by email shankar no dot vangari at gmail com
    regards
    shankar

  • Satellite U500-1E0 - how to switch off the mouse 'clicking' noise

    Please can anyone tell me how to switch off the 'clicking' noise that the mouse buttons make when they're depressed?
    Thanks.

    Im not U500 owner but Ive got a U400 notebook model.
    As far as I know the touchpad buttons dont support any clicking sound which could be enabled or disabled by software.
    Therefore I would say its a mechanical noise which cannot be disabled.
    Bye

  • How to automatically create the custom migration scripts after recreating SSMA project?

    How to automatically create the custom data migration scripts after recreating SSMA project?
    There is number of tables ( big tables with BLOBS)  which I want to set up automatically to be migrated with custom migration scripts (replacing e.g. attribute named "FILE" with "TO_BLOB('') AS FILE" ).
    So the question is how to open MB file (I think that it should be standard db of some destktop RDBMS) ? 

    Hi Roman.Pokrovskij,
    According
    to your description, we can use SSMA tool to migrate data from one database (including Access, Oracle and so on) to SQL Server via GUI or the scripts. There is an example about migrating Access database to SQL Server via the
    custom migration scripts, you can review refer to them.
    <?xml version="1.0" encoding="utf-8"?>
    <ssma-script-file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Microsoft SQL Server Migration Assistant for Access\Schemas\A2SSConsoleScriptSchema.xsd">
    <config>
    <output-providers>
    <output-window suppress-messages="false"
    destination="stdout"/>
    <upgrade-project action="yes"/>
    <data-migration-connection source-use-last-used="true"
    target-server="target_1"/>
    <progress-reporting enable="false"
    report-messages="false"
    report-progress="off"/>
    <object-overwrite action="skip" />
    </output-providers>
    </config>
    <servers>
    <!-- Server definition for Sql server target server-->
    <sql-server name="target_1">
    <sql-server-authentication>
    <server value="$SQLServerName$"/>
    <database value="$SQLServerDb$"/>
    <user-id value="$SQLServerUsrID$"/>
    <password value="$SQLServerPassword$"/>
    <encrypt value="true"/>
    <trust-server-certificate value="true"/>
    </sql-server-authentication>
    </sql-server>
    </servers>
    <script-commands>
    <create-new-project project-folder="$project_folder$ "
    project-name="$project_name$"
    overwrite-if-exists="true"/>
    <connect-target-database server="target_1"/>
    <load-access-database database-file="$AccessDbFolder$\$AccessDatabaseFile$"/>---
    <!--Schema Mapping-->
    <map-schema source-schema="$AccessDatabase$" sql-server-schema="$SQLServerDb$.dbo" />
    <!-- Convert schema -->
    <!-- Example: Convert entire Schema (with all attributes)-->
    <convert-schema object-name="$AccessDatabase$"
    object-type="Databases"
    conversion-report-overwrite="true"
    verbose="true"
    report-errors="true" />
    <!-- Synchronize target -->
    <!-- Example: Synchronize target entire Database with all attributes-->
    <synchronize-target object-name="$SQLServerDb$.dbo"
    on-error="fail-script" />
    <!-- Data Migration-->
    <!--Example: Data Migration of all tables in the schema (with all attributes)-->
    <migrate-data object-name="$AccessDatabase$.Tables"
    object-type="category"
    report-errors="true"
    verbose="true"/>
    </script-commands>
    </ssma-script-file>
    There is a similar scripts about migrating Oracle database to SQL Server, you can use powershell script to automatically run the console for scripts/variable files, saved in the specified folder. For more information, review the following
    article.
    http://blogs.msdn.com/b/ssma/archive/2010/09/09/performing-database-migration-assessment-using-ssma-console-application.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Is it possible to increase the height of the Push button in a screen?

    Dear All,
    Is it Possible to increase the height of the Push button in a screen (Module Pool Programming)?
    Is it possible to increase the font size of the characters in a screen (Module Pool Programming)?

    Hi Vijay,
    My question is.. I want to know whether it is possible to increase the height of the Push button in a screen. If it is possible, How to increase the height of the Push button?

  • Why is the push button sticking?

    Why is the push button sticking?

    The person has to have an apple device and also has to be registered with iMessage, otherwise of you try to message them their name will turn red with a ! Next to the name saying they are not a registered use of iMessage.
    If your clicking on the name and typing in the box that pops up, you may be typing in the "subject" area. The iMessage has two sections to type in, the subject and content are. The bottom portion is the content area so if you have a message already started then use this area.
    The "subject" portion can be turned off also in Settings, messages
    It gives the option to turn off the subject portion here

Maybe you are looking for