Stop loop

Hi, i want to stop execution the vi in a loop when it running greater than 5 sec.
how can I do it?
thanks

Thanks tbob. I am not doing as you say. An you are right the picture is local to my pc hard drive. Doh!
Take 2.....
I am assuming that you want to pause your code after 5 seconds of execution. I suggest
1. Implement a timer into your code. i.e Elapsed Time = Current Time - Start Time
2. Wire the elasped time result to an indicator or a boolean when its greater than your target time.
3. Place a conditional probe on the wire that has the elasped time and set it to >= 5 or 5000 if you are in ms.
Like this
Message Edited by David Crawford on 10-21-2005 01:12 AM
Attachments:
Elapsed Time Pause Using Conditional Probe.jpg ‏58 KB

Similar Messages

  • Animated Gif won't stop looping!

    I'll try to format my question as best I can.
    I have created a Java chat applet, and for the Java chat, I have created a "ChatPane" class for displaying the chat. ChatPane is an extension of Canvas, and every time the paint() method is called, the program loops through visible lines of text drawing them on a buffer image, then draws the buffer on the screen.
    My problem lies in animated gifs. In my chatroom, chatters can type textual symbols that will be replaced with an image (or emoticon). I have created my animated icons in a popular animated gif editing program, and I have set particular icons to loop 3 times. The problem is that when the animated icon is displayed in my applet, the animation -doesn't stop- after 3 loops, it loops forever! I can't for the life of me figure out why! Can anyone provide any insight as to why the animations won't stop after 3 loops? The animations work just fine if displayed in a browser by themselves (they stop looping after 3 times)
    Thank you for any help!
    [email protected]
    Tony N.

    From what I understand of your problem;
    - You have made your own animated gifs
    - With the software to make these gifs you have set them to loop their animations 3 times
    - They loop continuously
    I don't see how java can be expected to interpret the animated gif software instructions to loop only 3 times and would assume that there are various proprietry ways of setting this (an assumption based on applets /javascript etc, that rely on the client-side browser interpreter). So, if you loop your animated gif or have any form of animated gif that you import into your program with getDocumentBase /getCodeBase as a (pre-animated) gif, then this is exactly what I would assume would happen.
    The answer is to seperate your images with eg;-
    smiley1[0];
    smiley1[1];
    smiley1[2];
    run a seperate thread, cycle through them as you wish and stop.
    I'm fairly sure that there is nothing in either the swing libraries or the jmf libraries that can resolve this any other way, so your choices are write extra code and have a pool of threads to control this, or leave it as is.

  • How do I prevent my Mac Pro from  hanging up in a start/stop loop?

    My Mac Pro has a strange behavior I need help with. This computer is used almost exclusively for audio recording in my studio. I run Cubase 4 as my primary sequencing software. Everything will be going fine during a session, and then the software will abruptly hang up in a *start/stop loop*, stuttering back and forth between these two functions for up to 2 minutes before stopping. During this loop problem, the start/stop transport buttons alternately light up and the song starts and stops. Nothing I have tried will interrupt the problem. It just runs its course and then stops, usually between 30 - 90 seconds.
    Interestingly, the same behavior shows up in other applications and in the Finder. In Quicktime and iTunes, it shows up as a start/stop loop. In the finder, it will shuttle back and forth between two related functions and beep each time. In word, it will show up as a key stick, typing the same letter over and over.
    Needless to say, this is all very frustrating and embarrassing when clients are here. Any help will be greatly appreciates. Let me know if you have any additional questions.

    I'd begin with repairing your drives with Disk Utility and Disk Warrior; clone your system to another drive, and check for corrupt files and prefs.

  • I want to stop loop through push button forms 10g

    I want to stop looping through push button forms 10g it is like (SwingWorker() in java) (DoEvent() in .net)
    The problem in forms 10g that when you start looping the form will freeze and you can't push any button on form, I found solution for that in form 6i through package d2kwutil **WIN_API_UTILITY.InterruptCheck(hButton)**
    But in 10g I can't find solution, Please help>>>>>
    declare
         hButton          PLS_INTEGER;
    begin
    :interruptcheck.counter := 0;
    hButton := get_item_property('INTERRUPTCHECK.PB_OFF',WINDOW_HANDLE);
    go_item('interruptcheck.loopcount');
    set_item_property('INTERRUPTCHECK.PB_OFF',ENABLED,PROPERTY_TRUE);
    set_item_property('INTERRUPTCHECK.PB',ENABLED,PROPERTY_FALSE);
    set_application_property(CURSOR_STYLE,'HELP');
    set_application_property(CURSOR_STYLE,'<d2kwut60>WAIT');
    for i in 1..:interruptcheck.loopcount LOOP
         if WIN_API_UTILITY.InterruptCheck(hButton) then
              exit;
         end if;
         :interruptcheck.counter := i;
         synchronize;
    end loop;
    set_item_property('INTERRUPTCHECK.PB_OFF',ENABLED,PROPERTY_FALSE);
    set_item_property('INTERRUPTCHECK.PB',ENABLED,PROPERTY_TRUE);
    set_application_property(CURSOR_STYLE,'DEFAULT');
    end;
    Edited by: wael amar on May 1, 2010 11:03 PM

    Ok, here's a working testcase.
    The idea is taken from an article from an oracle magazine (i don't have it at hand, , so i tried to rebuild it by "memory". As far as i remember the original was from the german doag-magazine and was written by Gerd Volberg).
    Procedure to do the looping:
    PROCEDURE PR_DO_THE_LOOP IS
      nNumberInOneStep NUMBER:=2;
      tm               TIMER;
    BEGIN
         DEFAULT_VALUE(0, 'GLOBAL.INDEX');
      IF :GLOBAL.INDEX=0 THEN
           -- Didn't run yet, determine the max count
           :GLOBAL.MAX:=10000;
      END IF;
      LOOP
           -- Do the looping stuff
           -- Decrease counter
           nNumberInOneStep:=nNumberInOneStep-1;
           -- Increase globale counter
           :GLOBAL.INDEX:=:GLOBAL.INDEX+1;
           -- Exit conditions
           EXIT WHEN nNumberInOneStep=0;
           EXIT WHEN TO_NUMBER(:GLOBAL.INDEX)>=TO_NUMBER(:GLOBAL.MAX);
      END LOOP;
      -- reset index at end
      IF TO_NUMBER(:GLOBAL.INDEX)>=TO_NUMBER(:GLOBAL.MAX) THEN
           :GLOBAL.INDEX:=0;
      ELSE
           -- start timer for next iteration
           tm:=CREATE_TIMER('TM', 10, NO_REPEAT);
      END IF;
    END;The WHEN-TIMER-EXPIRED-trigger
    IF :GLOBAL.INTERRUPTED='Y' THEN
         MESSAGE('Interrupted at index ' || :GLOBAL.INDEX);
    ELSE
         PR_DO_THE_LOOP;
    END IF;The WHEN-BUTTOn-PRESSED-trigger on the interrupt-button
    :GLOBAL.INTERRUPTED:='Y';The WHEN-BUTTOn-PRESSED-trigger on the "start"-button
    :GLOBAL.INTERRUPTED:='N';
    PR_DO_THE_LOOP;

  • Making my animation stop looping (it should be really simple, right?)

    I am trying to achieve a simple thing really; I have made an animation and want it to stop looping at the end.
    A quick search of the internet reassured me that this is simply a matter of putting in a stop(); command in the script. Great!
    Errr.. no.
    Here is what I did:
    I created a new layer for my script and called it 'Actions'
    selected the final frame of the Actions layer and added a keyframe
    selected said keyframe and opened windows->Actions
    typed in stop(); and closed the window.
    Ok, so that apparently is all there is to it. Only, when I test the animation it doesn't move at all. it seems that the stop command executes right at the beginning and is constant throughout the whole timeline.
    Also, I noticed that the Actions layer has a small white circle/dot on frame 1 and on the final frame also. There is no small letter 'a' that should be there on the final frame, but I don't know why.
    So, what am I doing wrong?
    I realise that if I am struggling to do such a simple task it doesn't bode well for any further learning of actionscript. Which is a shame.
    Any help would be great, thanks.
    Andrew

    What you describe should have worked, but you might have mis-stepped as well.  Try having the Actions window opened before you select the frame and type stop(); and leave it open afterwards as well for when you test.  As soon as you enter some code in a frame it should display the lowercase "a", so your best bet is to keep trying it different ways until you see that.  As I said, the way you describe it is legit, but what you might have done in following what you say might be off.

  • Stop Looping in SWF Loader

    Hi i'm new to AS, I am trying to use the AS3 Loader class to
    pull in a SWF file that should only play once.
    How do I get this thing to stop looping?!
    Code is below.

    you must explicitly stop the video stream. if you're using
    the flvplayback class to start the video's play, you'll need to
    apply the stop() method to that class instance.
    you can access the main timeline of your external swf by
    referencing the content property of your loader (and casting that
    as a movieclip). from there, use the path to your flvplayback
    instance and apply a stop() when the playheadPercentage of your
    flvplayback instance reaches 100.

  • Newbie needs help - stop loop...

    Hey, I am new to DW and Flash but learnign pretty well (or so
    I thought). Anyway, I made a simple grapic that is to fade in to a
    page. It works fine. I want it to fade in and be done, but i keeps
    looping. If I look in the properties area I see no place to stop
    that (though the help sections says it's there somewhere). I see
    "sync" and even if I set it to "event", "repeat" "0" - it still
    loops when tested. How do I make this thing run once? (I also ooked
    in the publish settings but didn;t find it). I am sure it is right
    undr my nose somewhwere....(Flash CS3 Pro).
    Thanks

    Another way to stop looping is to use "stop ()". Select the
    last frame of any one of your timelines. Open the actions panel.
    Place the code in the first line. This stopped my test movie from
    looping.
    Carmen

  • How to stop looping in ActionScript 3.0 document?

    Please bear with me, as I am extremley new to this ( i.e, I started yesterday).
    I had wanted to just create a simple button that would allow me to move through 4 frames. Since I wasn't sure how to do this, I followed this tutorial : http://http://www.youtube.com/watch?v=Oh_ltA0px0M
      Everything worked fine, and I followed it exactly ( except, four frames rather than three). When I was finished, I went to Test Movie. Unfortunatley, instead of me being able to click the buttons, all the frames just kept looping themselves over and over. Yes, I did use the stop(); command, as I used the exact code in that tutorial ( I even tested in on a new frame next to the others) but it still won't work. Help?

    Alright, let me rephrase.
    When I click Test, instead of being able to press the button, the frames just go through each other too quickly for me to be able to click the button. I did as you suggested and made a new file, and created another completly different button. When I went under Control, Test Movie, and Text, that frame also kept looping itself, even though it was only one frame ( meaning the frame kept flashing). But, when I move the mouse over it and click, it changes color like I had written it too. I assume that's what you mean by normal mouse behavior, right? I just want to know why the frames keep playing, without me pressing the button.

  • Problem with non-stop looping

    This file has been supposedly changed from As2 to As3. It seems as if it used to stop when I first got it. But the links didn't work. When I followed troubleshooting protocols, it started looping non-stop.
    Please help. I can't seem to attach the flv and the action script files. All I get from the output window is "Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts."
    Please help. I paid a coder to switch the file from as2 to as3 and this is what he gave me...

    contact that coder and let them know the problem.  if it's a problem with their code, they should fix it without charge.

  • How To Stop Loop If....

    I do not want my swf to loop and when I go to last frame and
    put stop(); in the action script, the movie now doesnt play at all
    when opening.
    Any ideas???
    Thanks
    Steve

    maybe is playing because u put a stop and in the first frame
    ;)

  • How to stop loop in Revolutions Theme

    I wish to stop the looping of the theme in Revolution, I have got to the resources folder and used PlistEdit Pro and found some looping text but would like help as not sure which to alter. I want the theme to run for one minute and then stop. Do hope someone can help.

    Welcome to Apple Discussions!
    As far as I know, there is no way to have the music just stop playing when it reaches the end. There is the ability to turn looping on or off, but that refers to an entire project, not menu music. You can adjust the length of the loop. To get music that plays for one minute, select a piece that has a duration of one minute or more. Drag that song into the audio well of the menu. Then use the slider to adjust for how long you want it to play. However, once the end of the music is reached, it will start over.
    I hope this helps.

  • Qsm pc, problem with stop loop

    Hello,
    i tested queue producer/consument with event case, but i have problem with stop the both loop, can you help me with attachment ?
    Attachments:
    queue_mereni_1.zip ‏46 KB
    Global_queue.zip ‏3 KB

    thanks for your answer,
    i had problem with upload *.vi (some mistake), so when a upload *.zip it was ok, but i do not know why..
    please, when i put time out constatn, so when i push "stop" then both loops end - it is ok BUT:
    when i push "stop 2" button (for the second loop) so there is error (in attachment), please do you know why?
    i am sorry for a lot of questions but i try understand it..
    thank you
    Attachments:
    qsm.jpg ‏31 KB

  • How to get simple tween to stop looping

    I have created a real simple motion tween a text tween ,,,,,,
    it works fine when i test it on the stage,, i removed the "loop" in
    html and that tests fine ,,, i added a stop(); in the last keyframe
    but it does not stop when i test it through flash???
    I am confused here must be something simple i am missing ????
    Thanks

    Answered my own question i put the stop in the wrong layer
    :(

  • How do I get flash to stop looping? (And some other problems too)

    I'm brand new to flash so cut me a little slack... 
    I'm in the middle of building a website in Flash CS4 in Action Script 3.0 and (according my the tutorial I'm using) I need to access the "parameters" panel. The problem is I don't see it anywhere. I see "properties" and "filters" but to parameters. I've cycled through all the workspace presets but with no luck. How can I bring it up??
    Also, even though I used the "stop();" code in the beginning of my actions frame my movie just keeps looping when I test it. What am I doing wrong?
    I've attached the file I'm working on, maybe there's some other problem as well..?
    Thanks in advance..

    to see the parameters panel drag a component (like the flvplayback component) onto the stage.  a parameters panel should appear.
    if you have no compiler errors and your swf plays past a stop(), you have other code that's executing after the stop() causing your timeline to advance.

  • How Do I get SSIS To Stop Looping Through Excel Rows After Last Populated Record?

    I have a package that loops through many excel files. Each Excel File has about 5000 rows. My problem is that after the 5000th row SSIS keeps looping through all the rows after the last row. There are nothing in these rows. This is a complete bottleneck
    of my package because it takes forever when doing this. How do I stop this?
    Thanks

    Another way is to specify the range in select statement which can be done in two ways
    http://getsetsql.blogspot.in/2012/01/using-ssis-load-data-to-excel-sheet-at.html
    http://sqlserversolutions.blogspot.in/2009/02/selecting-excel-range-in-ssis.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to start and stop looping

    I'm very new to Flash / action script, so I just need to know where to put both the start loop, and the end loop code (below) in my Flash file to make the waving effect on this flag (link below) start and stop when I need it to, because I'm adding a small amount of flash both before and after it. thanks.....
    loopI = setInterval(loopF,40);
    to start the waving and use:
    clearInterval(loopI);
    to stop the waving.
    function loopF(){
        // move the matrix by speed along x to shift the noise
        shift.translate(speed, 0);
        // drawing in the perlin movie clip,
        // create a rectangle with the perlin noise
        // drawn in it with an offset supplied by the
        // shift matrix
        with (displace_mc.perlin){
            clear();
            beginBitmapFill(noiseBitmap, shift);
            moveTo(0,0);
            lineTo(ramp._width, 0);
            lineTo(ramp._width, ramp._height);
            lineTo(0, ramp._height);
            lineTo(0, 0);
            endFill();
        // draw the displacement movie clip in the
        // displaceBitmap (used in displaceFilter)
        displaceBitmap.draw(displace_mc);
        // apply displaceFilter to the flag
        flag_mc.filters = [displaceFilter];
    updateAfterEvent();
    http://www.senocular.com/flash/source.php?id=0.188

    i told you and it's in your message:
    use:
    loopI = setInterval(loopF,40);
    to start the waving.
    use:
    clearInterval(loopI);
    to stop the waving.
    // do not edit the below code:
    function loopF(){
        // move the matrix by speed along x to shift the noise
        shift.translate(speed, 0);
        // drawing in the perlin movie clip,
        // create a rectangle with the perlin noise
        // drawn in it with an offset supplied by the
        // shift matrix
        with (displace_mc.perlin){
            clear();
            beginBitmapFill(noiseBitmap, shift);
            moveTo(0,0);
            lineTo(ramp._width, 0);
            lineTo(ramp._width, ramp._height);
            lineTo(0, ramp._height);
            lineTo(0, 0);
            endFill();
        // draw the displacement movie clip in the
        // displaceBitmap (used in displaceFilter)
        displaceBitmap.draw(displace_mc);
        // apply displaceFilter to the flag
        flag_mc.filters = [displaceFilter];
    updateAfterEvent();
    http://www.senocular.com/flash/source.php?id=0.188

Maybe you are looking for

  • Text File Cross Referencing

    Hi, i am fairly new to OO programming. I am having difficulty with creating a cross reference listing of a text file specified on the command line. An example of a program call is java -jar Xref.jar mytext.txt myxref(created file).txt The cross refer

  • 2 e4200s on the same network?

    I used to have this exact setup with 2 wrt610ns i believe was the model number, i have one at my house, connected to my dsl, and then another in my "man cave" connected by a approximately 250 foot buried outdoor cat6 cable, inside of conduit of cours

  • Export "recorded" Keynote to Quicktime=loss of quality and stuttering..

    Hi folks, Can anyone give me help? Here is the deal: 1. I have a nice Keynote with all of my actions and transitions. I want to record it (or whatever) and send it to iMovie where I can manipulate multiple songs (from iTunes) as a soundtrack. 2. Afte

  • Can i use my MB as a wifi phone??

    Hey all, i live in France and have an internet provider called free. This provider allows me to use a phone connecting to my network using wifi, and therefore use VOIP to make phone calls on regular phone numbers, for free... unlike skype. Therefore

  • 3G on iOS 6.1

    Goodmorning everyone, I just updated iOS to 6.1, LTE function doesen't work as "oldest" 3G. Where, with 6.0.1 and 3G on, I was fully covered now I'm with GPRS, I use iPhone for everyithing, maps, mail.. I work as a representative, I'm not able to wor