How can I start and stop two parallel loops?

Hello,
I want to control two parallel loops with different timing in a vi . That means to start loop 1, then loop 2, stop loop 1 or 2 restart loop 1 ...
But if loop 1 is running I cannot start loop two and reverse.
Can someone help me and show whats wrong in my example?
Thanks,
Christian
Solved!
Go to Solution.
Attachments:
Parallel loops Test.vi ‏46 KB

Hello Christian,
The reason why you can't do what you want is in fact quite simple.
You have an external loop that is "over" the two inner loops.
So when you stop one of the inner loops, the outer loop will still be in the same iteration until the other inner loop ends - stop the other inner loop.
You can see it very easily if you probe the iteration counter of the outer loop - only when both the inner loops stop, it will incerment.
So, to do what you want, you need to make them independent - you need two outer loops.
Check my attachtment, see if that's what you need.
Hope this helps,
Paulo
Attachments:
Parallel loops Test2.vi ‏48 KB

Similar Messages

  • How Can I Start And Stop NSTimer..???

    Hellllooo...
    I Have a NSTimer. I want to Start and Stop NSTimer Menually ,,so how can i do????
    -------THNKS---------

    You are rather rude, Patel. wjosten was directing you to where you
    are more likely to get an answer. We are only users here, and your
    question seems to deal with programming which is handled in the
    developers forum.
    Good luck getting an answer with your attitude.

  • With apple pages - how do I start and stop the correction system/ spell and grammar, etc proof reader?

    How do I start and stop the corection system - das Korrektursystem/ the program in pages where one mark a text while proff reading it?

    Pages version?

  • How Can I Start And Start And DebugTomcad in Jdeveloper12C

    Hi
    How Can I Start And Start And Debug Tomcad Application Server in Jdeveloper12C.

    I'm not sure if this extension will work in 12c - but you can download the code and try and upgrade it to 12c - https://blogs.oracle.com/shay/entry/tomcat_extensions_for_jdevelop_1
    You can also just add command line short-cuts to start Tomcat to the tools->External tools option in Jdeveloper.

  • How do you start and stop music on iMovie

    how do you start and stop music on imovie?

    http://support.apple.com/kb/HT4157
    To stop, just to back into those settings and cancel before the monthly plan automatically renews.
    Regards.

  • How to pause and stop two "for loops" in an event

    Hi
    The main menu runs first and then goes to reading menu. After "Start Reading" button is pressed, the reading process will take readings.
    1) During reading process, if the "Pause Reading" button is pressed, I want that the two "for loops" are stopped and the two "for loop" counters do not reset. After the "Start Reading" button is pressed, the two "for loops" will continue to run.
    2) During reading process, if the "Stop Reading" button is pressed, I want that the two "for loops" are stopped and the two "for loop" counters are reset. After the "Start Reading" button is pressed, the two "for loops" will run again.
    The attached two VIs are simplified my real application. Any help will be appreciated.
    Thanks
    Steve
    Attachments:
    Main Menu Test.vi ‏9 KB
    Reading Menu Test.vi ‏23 KB

    You can't have those loops inside of the event structure.  Currently, when you press the start button, the reading has to finish before the event case finishes.  This will prevent the stop can cancel buttons from being processed by the event structure.
    You need another loop that can recieve commands from the event loop.  Look up the Queued Message Handler.  That should get you a good start on the command process.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I transfer data between two while loops in parallel

    Hello,
    I have two while loops in parallel and I want to transfer data from the first to the second loop. The problem isthat data are transfered only when the first loop ends. I tried with queue but it doesn't work. How can I do, preferentially without global variable ?
    Thanks.

    I join a very simplified VI's because the real works with PXI, RT, ...
    When you run the "secondVI.vi", no data comes in array from the "firstVI.vi".
    As I said in my first message, I tried with queue too but it doesn't work, because when the terminal go out from the while loop, while loop have to be ended to send data.
    Attachments:
    transfer_data.zip ‏20 KB

  • EXS24 : how can I launch and stop sound with key (instead of holding key)

    Hi,
    I'm using EXS24 to launch sounds (like pads) : I've created a specific instrument with one sound on each note (with differents zones). I've checked the box "One-" to have the sound that continues without holding the key, but I would like to be able to stop the sound with the same (or an other) key.
    WIthout stopping the other sounds.
    How can I do this ??
    Thanks for your help !
    Etienne

    You can make groups, have your "sample off" key assigned to a short audio file of silence (or just turn the volume parameter of that sample to -96 in the zone editing area of the EXS.
    Make the polyphony of the groups to 1. So you hit your one shot and it is playing through, when you hit the 'blank' key it plays instead - which is playing nothing.
    Depending on what you need, you can copy the blank sound into different groups (hold option and drag) - but this would stop all groups with one key. So if you need independent control, you can copy the same blank sample to different keys, and then group those individually with the different sample triggers.

  • CAN WE START AND STOP THE CONTROL CENTER SERVICES USING OMB?

    Hi All,
    I'm new into the world of OMB and currently i have been working with OMB scripts and i just need to know whether i am able to start the control center services using OMB...?
    Any help will be highly appreciated.
    Regards,
    Shenoy

    Thanks ALL, I GOT IT, but I used other solution.
    Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
    Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
    (C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
    I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
    success.
    Appreciate your time!!

  • How do I start and stop the SolidWorks Simulation by Labview function?

    Hi folks I have two question.
    1. According to "NI SoftMotion for SolidWorks - FAQ http://zone.ni.com/devzone/cda/tut/p/id/10493#h49", an user can manually by right-clicking the SolidWorks assembly in the Project Explorer and select Start Simulation. How to start simulation by Labview function?
    2. How to produce setup program(include Solidworks assembly) by Application Builder? An user can simulate without Labview 2011.

    Thankyou very much for your reply, i am new to Actionscript so your help was really good, I did the following code which seems to work ok.
    I now need to get the time that elapsed from the first to the second key press so I can move an object on the stage a set number of pixels, for example; 1 sec move 10 pixels, 2 sec move 20 pixels etc
    Any further help would be greatly appreciated.
    Thanks again.
    Mick
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.events.KeyboardEvent;
    var myTimer:Timer = new Timer(100,100);
    myTimer.addEventListener(TimerEvent.TIMER, fl_TimerHandler);
    var fl_SecondsElapsed:Number = 1;
    function fl_TimerHandler(event:TimerEvent):void
    trace("Seconds elapsed: " + fl_SecondsElapsed);
    fl_SecondsElapsed++;
    stage.addEventListener(KeyboardEvent.KEY_DOWN,keyDownHandler);
    var myKeyBoolean = false;
    function keyDownHandler(event:KeyboardEvent)
    if (event.keyCode == 86)
      myTimer.start();
    else if (myKeyBoolean == false)
      myTimer.stop();

  • How can I see and edit two Events?

    Hi, I am using iPhoto 11 [9.4.3] and can't find the help section for this operation. I did siccessfully get all the photos and events back by using a message from Old Toad, but I still need to move photos from one event to another. I read somewhere it was possible to view two Events in vertcai columns, is this still possible in this new version?

    For what it's worth,  you can always browse a second event or album in your iPhoto Library by browsing the library in Preview's Media Browser at the same time - only you can only browse but not edit. This can be useful, if you need to find a certain item, and are no sure which event to open next.
    For example - an iPhoto library open in iPhoto (left) and viewed in Preview (right) at the same time:

  • I need to have music that can be started and stopped; I downloaded "Speaker" but that doesn't work

    Do I needing an additional product?

    I don't know what "Speaker" is.
    If your file is MP3, try pickle player.  It works in all web devices.
    http://www.pickleplayer.com/examples/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Starting and stopping a drum loop in MainStage

    Hi, i've just started using Mainstage 2.1.2 and I'm setting up a B3/bass/drums split to accompany a vocalist. I'm trying to put in a drum loop from studio drummer which I use from Native Instruments. My issue is I need to be able to setup an action where I use a command on my keyboard (button or key or pedal to initiate a stop on the drums and then start them again when i choose....for instance for a bass solo, or even to kill the drums at the end of the tune). I succeeded in doing an action which muted it but i need it to stop so that when the vocalist comes in again the drums will be in time. i.e starting the drums again will just be like starting the track from scratch rather than have it running silently in the background which is what the mute/unmute does. Hope this makes sense and any help would be grealy appreciated.

    Hi
    One would normally set up either MIDI CC or Host Automation within Kontakt to do this, but it would seem that you cannot control the 'Play' button of the MIDI grooves within the NI Drummer series.
    To work around this, you could bounce the 'Drummer' groove to audio (in Logic, Garageband etc) and the use a Playback plugin within Mainstage to actually perform.
    Hidden benefits would be that Playback will use considerably less RAM that Kontakt with Studio Drummer.
    CCT

  • Split valuation : 'start and stop'

    Friends,
    My simple question is when can we start and stop SPLIT VALUATION.
    how to stop/deactivate, with which situation of stock / PO etc ?

    HI
    Yes it is possible.
    TCode - OMWC.  &  from menu Goto -global catogory-assignements.-
    You can deactivate the valuation catagory for Plants...
    or with respect to vauation catogory u can deactive the valuation classes.
    Regards
    S B H

  • Batch file to start and stop services

    I've setup a CF Probe on my Development Server to ensure my
    CF Production server is up and running (services = Apache and CF
    Application Server). It checks the PROD login page and if it times
    out in 30 sec the probe fails. I understand I can execute a file
    (batch file with net start and net stop) but the problem is I need
    to have the probe somehow point to the .bat file on the PROD server
    and not on the local machine. How can I remotely access this batch
    file and execute it? I don't know how to point to the file on the
    other server... can anyone help?

    Hi Ken,
    You had pointed me in the right direction regarding the
    psstools in order to create a batch file that can remotely start
    and stop services.
    i used the psexec command and am able to successfully restart
    the services needed remotely... however when i pick the file in the
    coldfusion administrator (in the probes section) how to i point to
    the batch file to run? it seems like the probe is not running the
    script like i want... the file is located on the c:\ so i entered
    c:\test2.bat...
    Thanks,
    Matt
    Matt,
    You should review the online help in the cfadmin for probes
    and the links it points you to in the developer's guide. Basically
    you need to define a new probe in the cfadmin by clicking the
    "Define New Probe" button. One of the probe's attributes will be
    what action. Define the action as a program and point it at a batch
    file running psexec. You will probably need to run CFMX as a
    specific user and not as localsystem, which is the default.

Maybe you are looking for

  • Problem with Clip Usage and merged clips in CS6

    The 'Clip Usage' drop-down menus don't seem to work in Premiere CS6 for merged clips. The info bar at the top of the project window correctly lists the number of times the viedo and audio from the clip has been used, and the downward-pointing arrow a

  • R12 with 2 node 10g RAC is not updating with autoconfig correctly.

    Hi, we are on R12.0.6 with 2 node 10g RAC. Our collegue did the RAC setup, I was not there at that moment steps he followed is 1. Installed 10g CRS,ASM 10.2.0.3 software and bring up the two nodes. 2. Configured the RAC DB to Oracle Appplication and

  • Color Correction with in Final Cut Pro 6

    Hi All, I have a showreel of my work, and some of the clips have sections that are darker than I would like them to be, and I would like to correct the color issues. Is it possible to only correct 3 seconds of over dark video, and not have the entire

  • Calculated Column-Make a copy of another column

    I need to create a column whose value would be calculated based on another 2 columns. I would appreciate help in the syntax MyCol=Col1TextCol2Text When I try to use the followiing formulae, I get error: The formula contains reference(s) to field(s).

  • (SOLVED) Keyboard lights go on and off and then Xorg crashes

    Strangest thing happened when I turned on my computer this morning: As I was doing my usual business (only Firefox running on top of Gnome), keyboard LEDs started going on and off (e.g. scroll lock and caps lock turn on, num lock off, then I press nu