Loop, proceed on click

Hi,
I am looking to place a loop condition in my Vi,that proceeds to the next iteration ( repeats inside the loop) again when a boolean clicked, for a set number of loops, any suggestions?
BD looks likes this....
Cheers 
Peter

You can right-click on the Event Structure and select "Add Event Case...". This code belongs to the event "Boolean is pressed" right? Not the timeout event When you will choose the option to add an event, you will see a window that will ask you to select which event should be handled. You will see the list of available controls to be handled. Select desirable control (this time it is boolean) and select the action which should be done with the control to active the event structure (like mouse down, etc., this goes for you to decide).
If you don't want to lock your front panel during the execution (this means you won't be able to acces the front panel controls for that time) of your code of the event, uncheck the "Lock front panel..." option at the bottom of the previously mentioned window during the event setup.
P.S. One more tip: if you wish to improve the readabilty of your code, try to avoidbackwards wires. I aim this for the "Counter Output" indicator. According to the LV etiquette, wires should dock indicators from the left and they should [un]dock controls/constants from the right.You can see those little white arrows indicating those directions on the icons.
And why do you need two Case Structures? You could put your code in the same Case Structure but just move it to the other case.
Message Edited by Giedrius.S on 02-14-2010 03:01 AM
Message Edited by Giedrius.S on 02-14-2010 03:03 AM
While evaluating my code please have in mind that I am a LV novice. Therefore sometimes my code might violate some coding rules that I have to learn about myself. But how else could I do that...
Chart zoom with "Mouse Over" effect

Similar Messages

  • I want to return my iPad 3, but I did not have an apple account at the time of purchase, and when I type in my order number and proceed to click "cancel order", it prompts me to log in with my apple I'd and then tells me that the account is not authorised

    I want to return my iPad 3, but I did not have an apple account at the time of purchase, and when I type in my order number and proceed to click "cancel order", it prompts me to log in with my apple I'd and then tells me that I am not authorised to do anything on the account in relation to the transaction. What should I do?

    You can view and edit your orders without an Apple ID by logging in with your order number, along with the shipping zip code or email address.
    I copied the text posted above from this website.
    http://store.apple.com/us/help/viewing_changing_orders
    Click or tap on the Order Status link here and you should be able to type in the order number and your zip code.
    To view or edit your Apple Online Store order, visit online Order Status and log in with your Apple ID and password.

  • Cannot complete an orders with Commsec. Thw browsewr stalls when "Proceed" is clicked.

    I cannot complete an order to BUY with Commsec. The browser stops at the command "Proceed". It will work with Internet Explorer. I have uninstalled Firefox and downloaded a fresh copy. No luck.
    Running Windows 7 on Bootcamp on a Macpro. desktop.

    I cannot complete an order to BUY with Commsec. The browser stops at the command "Proceed". It will work with Internet Explorer. I have uninstalled Firefox and downloaded a fresh copy. No luck.
    Running Windows 7 on Bootcamp on a Macpro. desktop.

  • HT1338 I have tried to upgrade to OS 10.8 Mountain Lion from 10.6.8.  I now have Mountain Lion icon sitting on my tool bar as being paused.  Nothing occurs when I attempt to proceed by clicking on this icon.  "About this Mac", tells me I am still in 10.6.

    What do I try next?  I have email advising I have been successfully billed for the upgrade.

    Make sure your Mac qualifies to run Mountain Lion >  Apple - Upgrade your Mac to OS X Mountain Lion.
    Disable anti virus software then try resuming the download.
    Apps such as Little Snitch, Net Nanny, and Hands Off can prevent apps from downloading including Mountain Lion.
    Keep in mind, for downloading Mountain Lion from the App Store, a high speed (broadband) internet connection is strongly recommended by Apple as noted here > iTUNES STORE - MAC APP STORE - TERMS AND CONDITIONS
    If you need to reinstall OS X or repair the the startup disk using Mountain Lion Recovery, that requires broadband access to the internet via Wi-Fi or an Ethernet connection. OS X is downloaded over the internet form Apple when OS X Recovery is used for reinstallation.

  • How to terminate or exit a for loop when the user clicks on stop button

    Actually my problem is to stop a loop when i click on stop button.
    example:i have two buttons 'start' and 'stop'
    in start buttom i wrote a for loop as
    dim i as integer
    For i=1 To 100000
    print i
    Next
    when i click on start buuton it prints 'i' value up tp 100000.
    my question is when i click on 'Stop' button the for loop has to terminate or Exit from the  loop and should stops the execution.
    Is it possible to termianate or Exit the 'for loop'
    PS.Shakeer Hussain
    Hyderabad

    I am unable to stop the loop and application not at all allowing to Press the Stop button.
    It seems like Hung, any advise ?
    Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
            btnStop.Enabled = True
            btnSelectFile.Enabled = False
            btnStart.Enabled = False
            btnStop.Focus()
            Dim strFileName As String = txtFileName.Text.ToString
            Dim strLineText As String
            If System.IO.File.Exists(strFileName) = True Then
                Dim objReader As New System.IO.StreamReader(strFileName)
                While objReader.Peek() <> -1 And stopclick = False
                    strLineText = objReader.ReadLine()
                    MsgBox(strLineText, MsgBoxStyle.Information)
                    Application.DoEvents()
                    Thread.Sleep(My.Settings("strDelay") * 1000)
                    'System.Diagnostics.Process.Start(My.Settings("strFireFoxLocation"), strLineText)
                End While
            End If
        End Sub
        Private Sub btnStop_Click(sender As Object, e As EventArgs) Handles btnStop.Click
            stopclick = True
            btnSelectFile.Enabled = True
            btnStart.Enabled = True
            btnStop.Enabled = False
        End Sub
    Raman Katwal
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Oracle Installer, infinite loop

    Downloaded: nt817personal.zip
    Unzipped and placed in F:\oacle8iPersonal
    click setup.exe
    Installer appears, welcome...
    next button, clicked; infinite loop.
    installed products, clicked: infinite loop.
    To stop installer, click X (close window).
    env: NT 2000, workstation, jvm 1.3
    Any help would be greatly appreciated!

    Step by Step Installation 9.2.0.4 on EL5.5.
    1. Make sure Java libraries are up to date.. (sysad side..)
    2. Do not start installation from the 9204 base installation- Oracle Universal Installer has problem
    2.1 Install first the OUI "only" from the 9206 patchset (p3948480_9206_Linux-x86-64.zip)
    using the Oracle_Home youve just decided. While running runinstaller from 9206, choose second option thats for OUI Installation. Once installation is done check under Oracle 9i Home you would see /product/9204/oui/oraparam.ini and /product/9204/oui/bin/runInstaller. If you dont find /product/9204/oui/bin/runInstaller. You may have to rerun the runinstaller from 9206.
    2.2 In ../Disk1/install/oraparam.ini edit the Linux value under [Certified Versions]
    Linux=redhat-2.1AS,redhat-2.1,redhat-3,redhat-4,redhat-5,UnitedLinux-1.0,SuSE-9,SuSE-
    * value must include redhat-5 inorder to suppress the error message for OS version incompat.
    2.3 After completion of OUI install, edit again ../product/9204/oui/oraparam.ini as instructed
    in step 2.2
    2.4 Now install the 9204 base using the OUI from 9206. Run ../product/9204/oui/bin/runInstaller BUT
    this time, select the "products.jar" from 9204 base installation set.
    (ex: /u01/app/oracle/Disk1/stage/products.jar)
    2.5 From here u should be able to install the SOFTWARE ONLY option. DO NOT create a database yet.
    3. Patch the 9204 base with the 9207 patchset (p4163445_92070_Linux-x86-64.zip)
    3.1 After decompressing contents, repeat step 2.2 again to suppress OS version incompat.
    3.2 Now proceed with the patch application
    4. You can now create a database using the "dbca" utility.

  • Loops won't install on new MacBook-corrupts system

    Howdy.
    I have a brand new 2.2 MacBook, and I'm already very familiar with GarageBand from having used it on my iMac G5 for many years.
    I'm having difficulty installing the loops.
    Of course, when I click on one of the loops, it tells me I have to install them and gives me the choice of the disc or the download.
    I tried the download first. Software Update ran and told me that there were no updates to install.
    Next I tried installing them from the system disc (disc 2).
    I went through the installation progress. After it finished, my system was completely screwed up.
    Any time I tried to run a program like Mail, iTunes, System Preferences or Front Row, they all crashed with the message "an unexpected error occurred". The message would not go away, even when accepting, reporting or closing the error message.
    I got on the phone with AppleCare and they had me reinstall the entire operating system from scratch, including the optional installs on the second disc.
    So I've done that, but still no loops.
    I click on the grey-shaded loops again and I still get the "need to install" dialog, but I'm hesitant because I don't want to have to reinstall Leopard all over again.
    I'd appreciate some advice from anybody who can help me solve this problem.
    Thanks,
    ==>Pete

    You'll have to install them from disk, there's no other way.

  • Loops in Red

    I recently upgraded from Soundtrack to Soundtrack Pro. Before I upgraded, I deleted the soundtrack loops so that I would not have duplicates. Now there are may red loops in my browser and I cannot seem to find a way to reconnect to them. I have tried re-indexing and that does not seem to work. Any thoughts?

    Sure, no problem. Click on the search tab, find and click the the "Setup..." button, and a sheet will pop up.
    In the upper left corner of that sheet there are two buttons labeled "+" and "-". Below that there is a big table with column headings "use", "Directories being indexed", etc. Each row represents a directory for which Soundtrack maintains an index of the loop files and their assosciated keywords and stuff.
    If for some reason Soundtrack loses track of the directory it's indexing, for example if you move your loops directory to a different drive, that directory's row in this table will turn red. You can select the red row and click the "-" button to delete Soundtrack's index. Then click the "+" button, navigate to the folder where your loops live, and click open to have Soundtrack index them again.

  • Unable to download Additional Loops For Garageband Ctrl R Does Not Work

    I am unable to download the additonal loops for Garageband on my iMac Purchased New Spring 2013.
    I have done the following with no success:
    Uninstalled Garage Band.
    Reinstalled Garage Band from App Store.
    Reindexed Loops
    Clicked on missing loop and choose Update Now
    Clicked on missing loop and choose Update Later
    Used Ctrl+R in App store (nothing available). (Yes, I logged in with AppleID)
    Deleted Apple Loops Folder
    Deleted Apple Loops index Folder
    Re-indexed loops in Garageband
    My Library... Apple Loops folder is empty, but the pre-installed loops for Garageband are there.
    I have also tried the terminal command: sudo softwareupdate --list
    There are NO updates available.
    Anyone have any addittional suggestions for installing the missing loops from Garageband?

    What exactly happens, when you try to download the missing loops - when you click on a missing loop and choose "Update now"?
    My Library... Apple Loops folder is empty, but the pre-installed loops for Garageband are there.
    Are you looking in the library in your Home Folder 
    "~/Library/Audio/Apple Loops/"  , or in the System library  "/Library/Audio/Apple Loops/"  ?
    The loops should be installed in the System Library  
    "/Library/Audio/Apple Loops/".
    How did you set up your new mac? Did you migrate from an older mac using Setup Assistant or Migration Assistant? Did you migrate an earlier GarageBand installation?

  • How do i copy several tracks at the same time in Logic Pro or is there a way to set multiple loops in one song?

    For example in an AABA song format, do I have to record the 3 As and then do another to fade out and end?  Seems like it would be much easier to create the part once and tell LP how many times and when to repeat each part.  HELP!!

    Do you have to copy each track separately? It would be much easier if I could select all the tracks together for copying/pasting.
    You cannot select multiple tracks in LP9, but you CAN select multiple regions. Use Shift-Click to select the parts on the tracks you want to copy, then hold the "option" key and drag them to the new position. This will create a copy at the new position.
    Let's say you have tracks for piano, drums and bass. In the arrange window, click on the 8-bar "A" part for piano. Hold shift key and click on the drums region then again for the bass region. All three will be selected. Now hold the option key and drag all three sections to the right to place them on bar 25.
    Also, how do you specify that you only want to loop X times? I can get a perpetual loop but I have to turn it off to get it to stop.  This is very inconvenient when I'm playing.
    You can control looping in a few ways.
    1. Go to a region that does NOT have looping checked. Click near the TOP RIGHT of the region in the arrange window. Drag to the right to specify where the looping will stop. This is tricky... if you click too low, it will extend the length of the region. You must click the correct spot near the top to control looping.
    2. For a region where looping is checked, go to the end of the region in the arrange window (at the end of the song) and do as #1 above. Drag to the left until you reach the point where you want the region to stop looping.
    3. Use the "pencil" tool to create a blank region where you want the first region to stop looping. If your 8-bar verse is repeating once, create a blank region at bar 17. The first region will stop looping there.
    Hope this helps.

  • How do I fix my animation presets for text that won't load? It seems to get locked in loop and I am forced close Adobe Bridge.

    How do I fix my animation presets for text that won't load? It seems to get locked in a loop when I click on one and I am forced to "fore close" Adobe bridge which After Effects uses to locate the presets. Any help would be appreciated. Thanks.

    What is your exact workflow? The proper procedure is to select your text layer in AE, find the text preset you want to use, then drag or double click that preset to apply it to your project.
    It also helps  if we know your version of AE and OS down to the decimal point. You didn't give us much to go on.

  • CS2's Tricky Right-Click (Windows Open With... Has No Illustrator Listing)

    I've seen several people ask about this and have had the problem myself.  I've seen few answers and most that have asked seemed to have sought help elsewhere or given up.  Having solved it with a little hunting and digging around for info, I thought I'd share what I've learned.  I know this is a half-decade-old issue, but I had it today and I'm sure I won't be the last.  Hopefully somebody else out there can benefit.
    Problem:  Upon installing the CS2 suite, Illustrator is not listed as an option for opening files in the contextual/right-click menu within Windows Explorer.  (Generally applies to PDF filetype, but should work for others if the issue comes up.)  Attempts to add Illustrator result in error messages or non-response from the Open With dialogue.
    Solution:  This solution will require editing your registry.  Registry files are very critical to the inner workings of Windows and if you're not sure about what you're doing, please ask an advanced user (or admin/I.T. dept. if you're on a work computer) for assistance.
    First, be certain that Illustrator and any other program that can open your PDF files are installed properly.  (Photoshop, Acrobat and Reader will do, for example.)
    If PDF is already associated with another program, you can skip to the next step.  In Windows Explorer, select your PDF and right-click on it.  Select Open With... then pick any program.  (Actually, even a program that can't open PDF's should work for this process, but you may have unnecessary difficulty.)  See that the checkbox to always use the selected program is turned on.  Click OK.  You may close the program after it opens.
    Now you'll need to retrieve the complete path to Illustrator.  One easy way to find this is to locate the program listing in your Start menu, desktop, wherever it is.  Right-click that icon and select Properties.  You do NOT want the path that's listed under Location on the General tab.  On the Shortcut tab, select and copy the path listed in the Target field.  You do not need to copy the quotation marks, if there are any.
    Next we need the Registry Editor...please do heed the warning above before proceeding.  Click on the Start menu, then Run...  In the Run pop-up (the Start\Search box in Windows 7 also works) type regedit then click OK.
    You should now have a window with what look like folder branches on the left-hand side.  These folders are called keys.  If you only see one item marked Computer, click the plus sign or arrow to expand the list.  There will be one key labaled HKEY_CLASSES_ROOT.  Expand that as well.  You should get a VERY long list that begins with * and proceeds through many file extensions and other items.  Scroll down...way down, past all the items that start with periods and other special characters.  We're looking for the P section, which in my list is about 3/4 of the way to the bottom.  Expand the key labeled pdf_auto_file.  (There is a .pdf item higher in the list.  Keep going if you're there.)
    We are now at: Computer\HKEY_CLASSES_ROOT\pdf_auto_file
    Expand all of the keys inside pdf_auto_file.  There should be one named shell, holding edit and open, each of which holds a final key named command.  Inside each of the command keys should be one item that shows on the right-hand side.  That item (this is called a value) is named (Default) and you'll notice the data within holds the path to the program you selected earlier.  This is what we need to change, iniside both command keys.
    Double-click the value name (Default) or icon.  A window will pop up named Edit String.  In this window, note the Value data containing the program file path.  This is usually surrounded by " and " "%1 ".  Select only the path between the quotation marks, ending in exe.  Now paste the path you copied earlier for Illustrator.  Take note that the complete string looks similar to:
    "E:\Adobe\CS2\Adobe Illustrator CS2\Support Files\Contents\Windows\Illustrator.exe" "%1"
    Click OK to close the box, then go to the other command key and repeat the replacement for its data value.  Close that box and you should be finished editing.  You may close the Registry Editor now, as well as any other windows you don't need.
    In Windows 7, this was pretty much all I needed to do.  Earlier versions may or may not need rebooting Windows to update the active system.  I've now got Illustrator as my default program for PDF's and it's available in the Open With... window should I chose to change my mind a couple times.  The PDF icon even updated itself. 
    Should you need any details explained further, drop a reply...I think I'll get a notice, though this is my first post here.  If I don't respond very soon, feel free to e-mail my nickname @aol.com to remind me.  Good luck!

    In XP Pro, not there to be 100% sure, that "open with" already has Illustrator CS3 listed and no version 10, the opposite of what Bridge shows.
    I'll try it, just in case that helps update Bridge.
    Thanks

  • Terminate loop in user decision step

    Dear Experts,
                         I have a user decision step in my workflow; which has two buttons e.g; approve and reject buttons. this step is in the loop. I want to terminate the loop when user click on Approve button. How I should capture the ID of approve button. OR there is some other idea to terminate the loop; as I don't have any other condition to stop the loop.
    Regards,
    Sohail

    Hi Sohail,
    Create one workflow container (e.g. APPR_FLAG) of type CHAR1. Then just after APPROVE branch of user decision step create one 'container operation'  step and set the APPR_FLAG to X. finally in you loop end condition put terminating condition as APPR_FLAG = X. So this your loop will terminate once qgent clicks on APPTOVE button.
    Regards,
    Ibrahm

  • Loop in TABLE

    hi,
    anybody tell me how to define LOOP in TABLE in SMARTFORMS.
    thanks
    RP

    Hi,
    You candefine loop like this:
    click on the window go to create>flowlogic->loop.
    In OUTPUT OPTION tab of loop you can define the LOOP into Work_area Statement.
    Alternate option:
    If you are using Table in Main window then you can provide LOOP into Work_Area statement in DATA tab & no need of creating separate loop.
    Ashvender

  • Encore CS4 Loop Point goes back to beginning

    Hi all,
    Thank you for your time reading this. I've searched the forum and didn't see a resolution for this type of issue. Please accept my apology if it is noted somewhere and I didn't find it.
    I created a Motion Menu in After Effects CS3 that is 00;05;07;00
    I then saved the layers as a psd files (I didn't create buttons within AE)
    I created the buttons I wanted within Encore.
    Turned off all of the layers in Encore except for the buttons that I created
    I created an AVI file out of the After Effects composition which is set as the Motion menu in Encore
    The only problem that I am having is that when the video ends it goes back to the very beginning of the motion menu instead of the Loop point I set at 00;00;14;00 (14 seconds if I did that right)
    I have Animate buttons checked
    Loop point: 00;00;14;00
    Loop #: Forever
    On the basic tab, for both End Action and Override I went to Specify link and chose the Motion menu(AVI) that I created. I checked the box at the bottom "Set to Loop Point"
    I'm not really sure what I'm doing wrong. This is my first time with a Motion Menu, so I'm sure I'm doing something wrong.
    Thank you for your time on this
    Best regards
    Jeff

    Jeff,
    Thanks for explaining.
    I'm now using CS5 and I'd heard the two menu thing wasn't necessary any more so:
    A week or so ago, I was trying to figure out the same thing.  I posted this question here http://forums.adobe.com/thread/852185?tstart=30.
    Unfortunately, there were no answers, and by then I had found in the Encore Help under Loop point (as you did) this group of instructions at the bottom
    "Set menu loop back
    You can set a loop point in a motion menu to a point from which you want the motion menu to loop, rather than the beginning. This is useful when the starting point and ending point of the motion menu are separated by a long interval.
    Select the menu from the Menu panel.
    On the Properties panel, set the loop point.
    Select Specify Link from the End Action Options menu.
    Select the target from the list, and then select Set To Loop Point, and click OK"
    However, I can't get this to work similar to you problem.  That is, if I select the "Play all, Scenes " menu as the target, since it has a motion menu, I can select "Set to loop point", since it's not greyed out.
    However, if I select the next menu "Scenes" with no motion menu, the "set to loop point" is greyed out.  If I select the Play all etc with the motion menu,  then the loop point doesn't work ie it still loops back to the beginning of the motion menu.
    I'm not sure what the work "taget" means from the last sentence in the suggestions.
    I was hoping an Adobe person would chime in, but so far no luck.
    I'm doing this in a SD project and not BluRay.
    Sorry to ramble.
    John

Maybe you are looking for