Execution conflict between a SubVI and a while loop

Hi,
I have wired the conditional terminal of a while loop with a boolean control. The same boolean control is responsible to terminate a SubVI (not inside the while loop) which also contains a while loop (I am using a reference to the control here). When I first use the boolean control, the SubVI is being terminated, but the while loop in the main VI is not. In order to terminate the main VI, I have to use the boolean control once more. In order to avoid that, I created a "status"-indicator within the SubVI, which is set to true once the SubVI is terminated, and wired that from outside the main VI's while loop to its conditional terminal. Of course, now the while loop does only execute once the subVI transmits the status value.
The thing is, I want both the while loop to execute before the status value is being transmitted (so, only the conditional terminal is supposed to wait for the value) and use the boolean control only once in order to terminate the VI.
Any ideas?

Ok.  I kind of expected to see this.
First of all, change the "Control: Mouse Down" event into "Control: Value Change".  DO NOT USE  A LOCAL VARIABLE!!!  Wire the result straight out to the termination terminal.  You want something like this:
Your writing to a local is a race condition.  The control was read before you wrote to it.  Therefore the loop was going an extra time around.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
Stop loop.png ‏13 KB

Similar Messages

  • How can i troubleshoot a "software conflict between a device and something in my original user account"

    hi
    my canon video camera (HV20) wasnt being recognised by iMovie (error message...in system report was "Unable to list FireWire devices".)
    in researching a solution i came across some firewire advice in http://support.apple.com/kb/HT1151#trouble which suggests there may be a "software conflict between the device and something in your original user account."
    i changed to another account on my iMac and my camera connected immediately.
    is anybody able to explain how i go about fixing this "software conflict".
    many thanks
    Carlo

    With the Mail.app quit and using the Finder, go to Home > Library > Mail > Mailboxes > Outbox.mbox.
    The Outbox.mbox represents "Out" in the mailboxes drawer and is shared by all accounts.
    Delete the Outbox.mbox and empty the Trash.
    Launch Mail and a new Outbox.mbox will be created automatically by Mail within the Mailboxes folder and this should resolve the problem.

  • Conflict Between Bluetooth Mouse and WIFI?

    I Bought the new MBPR X72 and a Iogitech Bluetooth Mouse.When i download something by Wifi,My mouse can't work well.I search the answer on Google,some people said that there is a conflict between Bluetooth mouse and Wifi.Because they are both use the 2.4G HZ.So anyone can help me ??

    If you are on your home network, you could set the router and MBPr to use only the 5 GHz band if you are using the n-protocol WiFi.  That would mean logging intothe router and changing band usage settings.  The MBPr would follow what it sees as the wireless signal.

  • Version conflicts between host labview and RT engine

    there is problem that i cannt switch target to feild point. It said that "version conflicts between host labview and RT engine" . But my labview is version 7.0 and the real time module is version 7.0 too. Anyone can give me hand? Thanks

    Depending on your version of MAX, you should be able to change the version on the FP (in remote systems). If you can't do it in 3.0, try upgrading to 3.1 (you will have to search for it on the site). If that doesn't work, you can try resetting to factory default and then see if you can do this.
    Another tip, which for some reason seems to help, is updating the OS\Run-Time Engine when windows is in safe mode.
    Try these and see if they help.
    BTW, as a tip for next time, you're more likely to get a good answer for something like this if you post in the FieldPoint board.
    Try to take over the world!

  • Conflict between iTunes Match and Windows 8.1

    I have been running iTunes on my fully updated Windows 8.1 PC for some time, without any particular issues. A few days ago, I activated iTunes match. It worked just fine, in the perspective of my iPhone and iPad. However, my PC stopped being responsive: Long time-outs on just about anything, and dialog windows refusing to appear (one of them being the McAfee console ....). A virus search using Microsoft's emergency services showed nothing.
    The moment I de-activated iTunes match, everyhing reverted to normal.
    My conclusion is, there is a major conflict between whatever the iTunes match service does, and the Windows 8.1 operating system.
    Any idea what this is all about, and if there is anything I can do about it (except avoiding using the match functionality)?
    I have the latest update of iTunes for PC.

    Hi lars1950,
    Welcome to Apple Support Communities.
    It sounds like you're seeing issues with Windows responding slowly since enabling iTunes Match. The article below may resolve the issue for you, it describes possible conflicts with Layered Service Providers and how to prevent them.
    Apple software on Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123
    I hope this helps.
    -Jason

  • Conflict between Logic Pro and external device error in Logic Pro X./cpu problems

    hi Logic users,
    using a MacBookPro 15 inch Retina, 2,7 GHz intel Core i7, 16 GB Ram, OSX 10,8,5, Logic X 10.0.4.
    i am wondering if you can help me out with the following problem i cant solve:
    when starting logic x with a not too big arrangement, lets say using one third to half of cpu, i open u-he plugin Diva and the cpu is going up on full range and the following error appears: "sample-rate 39299 (number always changes) reconized. Check conflict between logic pro x and external device"
    as external device im running a VirusTi and as audio-device Apogge Duet. when dis-connecting both devices, i have the same problem.
    putting the sample buffer up to the highest rate, doesnt change anything.
    same arrangements on friends computers dont show that problem, so it has to be something wrong in my set up.
    anybody has an idea?
    would be much appreciated for your help,
    thanx-

    Have you used Diva's preset Accuracy system to reduce CPU load?
    accuracy
    Click on the Main button at the bottom of the window. To the right of the Master section are two selectors called Accuracy and OfflineAcc. In the current version of Diva these are global parameters i.e. they remain fixed across all presets, per loaded instance:
    draft........CPU-friendly, but FM will sound rough and resonance is primitive i.e. NOT zero delay! fast......... Fine for older computers and/or when you need more polyphony in acceptable quality great...... The best compromise between quality and polyphony on high-power computers divine..... Top-quality zero delay feedback filters... but can your computer can handle it?
    OfflineAcc only has two options – same or best (i.e. divine in the current version).
    Some host applications may have problems rendering to audio at the selected accuracy, but the
    better ones include an “inform plug-ins of offline rendering status” or similar.
    I typically work in draft mode and then switch to Devine or best when freezing the track or bouncing the entire project...

  • Is there a conflict between Reader XI and Acrobat being used on the same computer?

    I downloaded the new Abode Reader XI. The computer in question has, also, Adobe Acrobat 7. Is there a conflict between them if used on the same computer? I can not open any PDFs and now the saved PDFs I had on the computer will not open and the icon shown on the desktop is gone. Please advise as I scan documents to this computer all the time and the person who needs to see them can not.

    I have Acrobat 8.1.6 and Reader XI on Win XP. Do these conflict? Should I get rid of the newer Reader?
    I'm having problems printing to the PDF print driver, locks up system, shows printer offline in spooler. I doubt problem is with driver itself because I can print a Test Page from it ok. But printing to Adobe PDF from Word & other apps locks up & never completes.
    There's an Exclamation Point next to Acrotray in Explorer. (see image)  What does this mean??
    Have tried Repair install of Acrobat twice.

  • Conflict between python-pyqt4 and python-pyqt5

    Hi!
    When trying to use matplotlib in the Spyder Python IDE I get the following error
    RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap the QObject class
    It's obviously a conflict between pyqt4 and pyqt5. However, pyqt4 is a hard dependency of Spyder and pyqt5 is a hard dependency of matplotlib. Outside Spyder, matplotlib works fine.
    Does anybody know how to resolve this conflict? Or is it a packaging issue? Shall I file a bug report? I think a discussion about matplotlib depending on Qt5 had already been going on here.

    Does it work with https://aur.archlinux.org/packages/pyth … tlib-noqt/ ?
    I think it's OK to open a bug report.

  • Are there any known conflicts between Mountain Lion and Microsoft Outlook for Mac? After installing, I can't send or receive eMails

    Are there any known conflicts between Mountain Lion (10.8.3) and Microsoft Outlook for Mac? After installing, I can't send or receive eMails. Using a Macbook Pro.

    Is this a recent problem or has it been going on for some time.  If you just updated to ML, you might want to confirm that you've update to the latest MS Office / Outlook patches.

  • Having a conflict between Firefox 4 and Endnote

    After installing Firefox 4, when I tried to open Endnote (and yes I closed the program before installing Firefox 4) I got a message that Endnote was unable to open my library, check to see if anyone else is using it; if the problem persists use the recover library in Endnote. Well, I tried the recover library and it did not work. I did get my library back by moving the library to my desktop, I think all by references are there, however, I lost all my Groups, and the file attachments are all messed up.

    I encounter immediate problems on installing Firefox 5. There were 3 Windows 7 crashes and I could not access Firefox. It was determined that there was a conflict between the anti virus program and the 5 version. There is no download for the older version 4 was not available. After trying several fixes, nothing worked.
    One post indicated that Mozilla was not fixing Firefox 5 and that the fixes were made in Firefox 6 version. Reluctantly, I upgraded to six and , to my amazement, it works again. Nothing ventured, nothing gained!! Hope it works for you.

  • How can I put a time delay between specific events in a while loop?

    How can I put a time delay between specific events within the same while loop? I'm already using the "wait" command to control the overall loop iteration speed. But I want to time the individual events as well.

    Hi Jesse,
    You can use a flat sequence. In each box you can put your individual events and attached wait.
    Don't forget to reduce your total loop time of the time you added in the individual sequences.
    Doc-Doc
    Doc-Doc
    http://www.machinevision.ch
    http://visionindustrielle.ch
    Please take time to rate this answer

  • Stop and start while loop on order

    Hallo everyone,
    I have this small IV, it means nothing but I want to know if it's possible to control each while loop. what I wish to do is to press the boolean button, then the while loop starts running and when i press it again the loop stops but when I press it again it works again, not that the program stops running at all. not only that but I need it for both loops. so i run one and stop the other then stop one and run the other and so on...
    I dont know if this is possible and its not necessary to be done with loops, I just wrote loops because this is what I can do and understand, if there are any other possibilities then please feel free to share it with me.
    Attachments:
    Unbenannt 3.vi ‏178 KB

    pcardinale wrote:
    Perhaps something like this.
    I don't think we need to involve such a huge amount of code and new concepts (timed loop, notifiers, subVIs, clusters, arrays, event structures, etc.),  to solve such a simple problem. (This might turn off a beginner!).
    Here's what I would do.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    TwoCharts.png ‏14 KB
    Unbenannt 3Mod.vi ‏17 KB

  • Problem with avi recording and parallel while loops

    Hi,
    I made a test-VI which captures my webcam and save it to an AVI. (based on a sample I found somewhere)
    This works pretty fine so far (except the fact that the "frames per second"-constant has no effect and I am not able to change the resolution, but that's not the problem).
    I have a VI which controls some hardware and I want to record this with the webcam. For testing I made a dummy-VI which should run in parallel with the VI above:
    The 1st while loop should capture the webcam.
    In the 2nd while loop is a dummy-VI which generates some random values and waits 5000ms (to simulate the hardware).
    The problem is that those while loops do not work in parallel. When the execution is finished I get an AVI-file which is about 100ms long (so I guess it captures just 1 frame).
    If I replace that whole dummy-VI thing with a stop button it works nicely, but if I try to use a "Wait (ms) Function" or a "Wait Until Next ms Multiple Function" the video is always just about 100ms.
    Any idea how to implement multitasking or maybe even multithreading ?
    Attachments:
    lv_avi-recording.png ‏23 KB

    Hi Chris3,
    Just a random suggestion but have you tried removing the sequence structure? You can wire the error cluster from the IMAQdx Configure Grab.vi to both of the VIs for it to start parallely. 
    If you put it in a sequence like that, it is most likely that the middle sequence has to complete execution before it can go to the next sequence but it couldn't because of the wait.
    Let me know how it goes.
    Warmest regards,
    Lennard.C
    Learning new things everyday...

  • Start, stop and restart while loops

    Hi, my qustion is i have 2 example a and example b. Example b lets u start counting up in seconds when u want to. as long as the toggle switchs are in correct position. it also lets u start, stop and restart if need be. i want to be able to that with example a, but for some reason the while loop always sets of running independent of what position the the toggle switch. Any help greatly appreciated.
    Thanks Stuart
    Attachments:
    examplealib.llb ‏202 KB
    exampleb.vi ‏25 KB

    An example as the attachment.
    Attachments:
    switch.vi ‏23 KB

  • How do I break a for loop (inside) and a while loop (outside) at the same time by a control button

    I have a while loop (outside) and a for loop (inside) and a control button within the for loop.  I want to stop the program by click the botton without finishing the for loop.  How can I do that?
    Thank you in advance.

    HI Please find attached snapshot Regards, Santosh
    Message Edited by SanRac on 12-17-2009 05:12 AM
    Message Edited by SanRac on 12-17-2009 05:13 AM
    Attachments:
    Snap1.png ‏4 KB

Maybe you are looking for

  • Erro no Login do DTW

    Bom dia a todos, Estou com um problema no login do DTW, o DTW consegue conectar com o banco de dados, ele carrega os bancos, mas quando clico no OK para fazer o login ele me da uma mensagem de Erro constando que não foi possivel conectar o servidor d

  • How to convert this random pos AS2 code to AS3?

    Hi! I'm doing a sort of screensaver and need to random the logo all over the screen. In ActionScript 2 it was easy, just paste some code to the object and it works. The things to do this is total different in ActionScript 3 and I can't figure out how

  • Maxl import on error write to error

    I created a Maxl import data script to load data using SQL. The execution works when the on error is set to abort, however, when I set the on error to write or append I receive a syntax error message. I set the path in script editor as on error write

  • Labels are not aligned properly when printed using HP5610

    Hi , I am trying to print Avery J8160 labels using my HP 5610 Officejet. I am using official Avery templates and have checked all printer settings, there are no issues. Everything is fine if I use plain paper but if I use Avery label A4 sheet, the al

  • Windows 2008 R2 RRAS VPN Issue

    Hello,     I have a Windows 2008 R2 server configured with RRAS.  I have several persistent connections set up to do remote data backups.  After a while, the connections get disconnected and if I try to reconnect, I get an error message that states: