Subvi does not stop from the mainVi immediately when the stop button pressed in the mainVi

Hi guys,
I have a mainVi which has a subVi inside. I want to have a kind of emeregency stop button in my mainVi.
when I pressed the button, the program does not stop instantly. it does one loop and then stops.
please help me to solve this problem.
Attached you can find the Main and SubVI
Attachments:
Sample2 MainVI.vi ‏18 KB
Move_MINI Editted SubVI.vi ‏13 KB

This is basic dataflow. Any code is available to run as soon as data is present on all its inputs. No data is present at its outputs until all the code inside has completed.
What this means in your case is that the stop button will likely be read almost instantly when the while loop starts an iteration. It will not be read again until the start of the next iteration. This is why it will usually take an extra iteration to stop. You can either force it to read the stop button after the other code inside the loop completes or use a Producer/Consumer (events) architecture where the stop button will be read in a parallel loop containing an event structure.
It also means that the Move_MINI subVI has no means of responding to any external events (such as the stop button being pressed) after it has started running. All the other subVIs are missing so it is hard to tell what is going on. From the control labels and VI names I suspect that this may be some kind of motion control system. If so it probably takes 100s of milliseconds to seconds or longer to complete a move. To allow an external event to modify the behavior of such a VI, you need a means of communication between the event (stop button) and the VI. A notifier may be an appropriate choice. The VI also needs to be configured in such a manner that it never goes more than about 100 ms without an opportunity to stop. Without knowing more about the subVIs, I cannot say how this might work.
Lynn

Similar Messages

  • My iCloud is set up and seems to work. However, a newly added contact does not sync from the Macbook to the iphone and iPad. What am I doing wrong?

    My iCloud is set up and seems to work. However, a newly added contact does not sync from the Macbook to the iphone and iPad. What am I doing wrong? Thanks, txstan

    Apparantly it is, On My Mac contacts don't appear in iCloud, anywhere.
    Put all your contacts on all of your devices in iCloud (assuming that's where you want them to be)
    Go to www.icloud.com, login and see what you actually have in the account.

  • My CS6 Production suite does not update from the help menu? The appilcation Manager says: "The updat

    My CS6 Production suite for Windows 8 does not update from the help menu? The appilcation Manager says: "The update server is not respondiing, the server might be offline temporarily..." I have registered correctly. I have turned off my AVG virus protection and tried to update my software, still the Application Manager gives the same response. When I login, I can see that my serial numbers are there, so it must have registered correctly.
    Help!

    If you don't want to download the updates manually, then you need to update your Application Manager.  The relevant links are here:
    Windows
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4773
    Mac
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4774
    Hope this helps.

  • Does not read from the path

    Hi All,
    I am not sure if this is the right place for posting this.
    I have Oracle reports 10g installed in a linux box (10gAS). I have specified the path of the directories for reports in reports.sh file. But still it does not read from that path. What could be the problem?

    1. Check the env variable REPORTS_PATH
    2 Check the reports server conf file path. Open the <reports servername>.conf
    and check the value.
    Rajesh Alex

  • Photoshop Elements 11 Organiser does not start from the welcome screen

    Having installed Photoshop Elements 11(Windows 7)  I cannot open the Organiser from the welcome screen. It can be opened via the Editor but few of the thumbnails are shown as pictures rather as empty squares. The situation does not improve with time but tends to get worse with pictures turning into squares. I have tried the tip with preferences but to no avail. I would be very grateful for some help. Best Regards Ian Tomlinson

    Try pressing Ctrl+A (to select all thumbnails) and then refresh again (Edit >> Update Thumbnails for selected items). If that makes no difference you may need to regenerate the cache.
    It may be worth rebuilding the thumbnail cache before re-installing. Click the menu:
    Help >> System info to find the path to your catalog.
    1. Close Organizer.
    2. Navigate to C: ProgramData/Adobe/Elements Organizer/Catalogs/My Catalog
    3. Find the file - thumb.5.cache
    4. Highlight the file and delete it.
    5. Re-start Elements Organizer
    6. Wait until all thumbnails have been generated.
    N.B. ProgramData may be a hidden system file:
    http://windows.microsoft.com/en-US/windows-vista/Show-hidden-files

  • Phone makes "morse code" sound when in use, not all the time but quite frequently. The sound does not come from the speakers, infact it comes from the comments inside the phone.

    When in use my phone makes a quiet buzzing noise coming not from the speakers but the actual phone. It does not do it all the time but it is quite frequent, my phone is an iPhone 5. Please can you tell me what the problem  is?

    Make an appointment at the Genius Bar to have it evaluated by the techs there. This is not normal and is probably not something that a user can fix.

  • Battery does not charge from the iPhone charger

    i have same problem with my iphone 4 and the etisalat provide me with new iphone 4 within same day i find also the new iphone have same problem it take me more than a month for replacement and now i start again to make complain and i do not know how long with take to replace the i pphone i ask the apple to request from etisalat to speed the process to replace i like apple products i phone , ipad,ipod... i hope you can help me to keep your product number one in uae market

    Try rebooting the iPhone, hold both the power and home buttons until the apple logo appears and it restarts, ignoring the red slider if it appears.
    The iPhone 5 should charge from the iPad charger, doing the reverse doesn't work, however.
    Leave it on the charger for a couple hours and if it still does not indicate increased battery charge, take it to an Apple store genius bar and have it checked.

  • Does not read from the path in default.env

    Hi All,
    I have given the path of my forms directories in default.env for my 10gDS Suite. While running it does not read it from the path that I have provided in that file. I also specified the same path in registry still the same error. The error message reads like FRM-18108: Failed to load the following objects.
    Any help will be appreciated.
    Thanks.

    Ok, I'm stumped!
    I thought I would see what would cause the Forms Builder to fail opening an fmb, so I changed my FORMS_PATH value in the default.env file by removing the second directory listed there. Opening a form in the builder gave me two errors:
    FRM-18108: Failed to load the following objects. (Listed the objects in our Ref form.)
    FRM-10102: Cannot attach PL/SQL library...
    Then I changed the FORMS_PATH back, but now, I am unable to open a form without those errors in the Forms Builder.
    My forms_path line looks like this:
    FORMS_PATH=C:\oracle\DevSuiteHome_1\forms;C:\Users\Steve\01\fmb10The only thing I can do now to get a form to open without the errors is to copy the reference fmb and the PLL library from C:\Users\Steve\01\fmb10 to C:\oracle\DevSuiteHome_1\forms
    It feels like I am going crazy, because this all worked before, and now I cannot get it to work.
    By the way, I am using Windows Vista and Forms 10.1.2.3.0

  • Waveform Graph passed as output of subvi does not refresh in the main vi

    I have a subvi that collects data in batches and displays the batch in a waveform graph. Then I make this waveform graph as output and call it in the main subvi to display the graph. The problem is that in the subvi the graph refreshed at each batch and plots the batch (which is how I want it to behave) while in the main vi it does not display anything.

    Your indicator is outside the while loop, so you wont get anything until the while loop finishes!
    Also your subVI is inside a case structure, the output of which is set to 'default if unwired' (which means empty array) so anytime your case structure is true, your values will be wiped. If this is intented, please excuse me.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • My iPad is double downloading iTunes TV series shows and when I delete, the extra show does not delete from the available memory.  I have lost almost 30GB of my 64 to this phantom shows.

    I am losing available memory on my iPad (64 GB 3rd gen) and it appears to lose memory because some TV shows that I have downloaded from iTunes are appearing twice in my downloads.  Both download, but when Only appear as 1 show on my "videos".  After viewing the show, I delete, but the duplicate show appears to be still there somewhere (not visible anywhere) taking up the same amount of memory that showed before downloading.  It reduces my available memory to download other shows.  The general settings do not show any of these phantom shows taking any memory, but the total available is much, much less than what is showing for all usage such as music, videos, photos, apps, etc
    Is it possible to delete a show from the download portion of iTunes if you have already seen a show and do not want to waste time or memory downloading again?  The only way that I know is to let it download completely and the delete from "Videos".

    John0618. Did you ever get a response or solution to problem?  I have the same problem (starting about three months ago). 

  • Photosmart B010a All In One test print O: K: Does not print from the computer

    Egr: Sig. No error message in the control panel is READY, has printed the test. DO NOT print from your computer. HP Computer in 6220 with window 7/64 bit. = tiscali WI Fi network. the printer is connected with the cable to the computer. I also tried with Doctor. Please help me figure out where I went wrong; I installed the latest type of software and drivers available. Thank you, Regards Costanzo 
    photosmart All In One B010a  stampa di prova O:K: non stampa dal computer
    Egr: Sig. Nessun messaggio di errore nel pannello di controllo risulta PRONTA , ha stampato la prova. NON stampa dal computer. Computer HP a 6220 con window 7 /64 bit. rete = tiscali WI Fi . la stampante è collegata con il cavo al computer . Ho provato anche con  Doctor . Per favore aiutatemi a capire dove ho sbagliato  ; ho installato l'ultimo tipo di software e driver disponibile . Grazie, Distinti Saluti Costanzo 
    This question was solved.
    View Solution.

    try to connect the printer with your laptop with USB connection.
    Give Kudos to say "thanks" by clicking on the "thumps Up icon" .
    Click "Accept as Solution" if it solved your problem, so others can find it.
    I work on behalf of HP.

  • Elements organiser does not launch from the desktop toolbar

    Obviously this is not a major, however it is very frustrating, and slows the workflow.  When I have the editor (I have version 11) open and click on the quick launch icon at the bottom of the desktop,  90% of the time, at least, nothing happens.
    Is this a known fault ?  Is there anything I can do to fix ?
    Any comments most appreciated !
    Warm regards from sunny New Zealand
    Jim

    Hi Jim
    Try making a direct shortcut for the Organizer and Editor. You can then launch the programs directly from the desktop bypassing the welcome screen. This is generally better as the welcome screen leaves background processes running.
    On Windows, Right click anywhere on the desktop and select New >> Shortcut
    Then click the browse button and navigate to:
    "C:\Program Files (x86)\Adobe\Elements 11 Organizer\PhotoshopElementsOrganizer.exe"
    Then click Next; then click Finish
    Then make a direct shortcut for the Editor in a similar manner.
    On Windows, Right click anywhere on the desktop and select New >> Shortcut
    Then click the browse button and navigate to:
    "C:\Program Files(x86)\Adobe\Photoshop Elements 11\PhotoshopElementsEditor.exe"
    Then click Next; then click Finish
    N.B. navigate to Program Files on 32 bit systems.
    Drag each icon to the taskbar and you should be able to launch either Organizer or Editor with a single click.

  • MacBook Pro does not Boot from the DVD

    If I want to boot from the DVD Insatll and "C" button, then you can hear noises as though it accesses the DVD but there is a gray background with the Apple logo and a spinning circle. I do so not in the Mac operating system but only in Windows.
    Please help

    "I do so not in the Mac operating system but only in Windows."

  • TS3988 icloud.exe does not load from the installer onto my windows 7 laptop

    Installed the iCloudSetup from Apple.  Installer said everything installed and finished. When I go to open iCloud, the laptop is looking for the iCloud.exe file and after a few minutes, it notifies me that it cannot find the original .exe file.
    I am thinking of re-loading the installer file again and starting over.
    Any other suggestions?
    Thanks!!

    There is an app you can download for xp, i havnt tried it because im not going to use icloud but if you go onto the ipad tab and then icloud there is a link on there.

  • Firefox does not open from the desktop icon!

    I upgraded to the new one and tried to run once the install said finish. my addmin account will not open firefox but my guest acct does open it.

    Have you tried: click Firefox button > New Tab > New Window '''''OR''''' CTRL+N '''''OR''''' File > New Window (if using the Menu Bar)
    Once open, Firefox locks the Profile that is in use and you can not open another window with that Firefox version and Profile combination using the Windows Desktop icon or the Windows Programs list.

Maybe you are looking for

  • Can't create a desktop shortcut for a website in Firefox Tor Browser

    I am a Tor Browser user, and I really like the Firefox interface. According to my about page, my Firefox browser is up to date. But For some reason I cannot save desktop shortcuts for a website. Every time I drag the icon next to a website (variously

  • Fan problem, could it be serious?

    I got the widget iStat Pro a while ago & loved it. Recently, I got another another app, smc fan control, I tried it out & found no real use for it. A few days ago, I noticed that iStat shows the fan speed for only one of the fans, "Fan 0" which goes

  • BADDI FOR RESTRICTING PO LINE ITEM TO 50

    Hi All, I wanna to know, is there any bapi/baddi/or exit to restrict the line items in a Purchase Order to maxm 50 items in a P.O. Thanks, Anu.c Message was edited by:         anu c

  • IFPM (Floor Plan Manager) method getCopyOfAllMessages()

    Hi All, this might not be the right forum to post this question, but I'm guessing more ESS WD developers look here than elsewhere. I'm currently trying to change the standard ESS travel application (ess-tra-tre) as per some customer requirements. The

  • Regarding deploy EAR on weblogc server 10.3.5 version problem

    Hi, I am using JDeveloper Studio 11.1.1.2.0 and weblogic server 10.3.2 and windows 32 bit machine.I have created EAR on 32 bit machine and Deploy on 64 bit machine,EAR is working not an issue in an Application but when i am using weblogic server 10.3