Halt VI when Wait Untill Done.VI is waiting

This program is for digitally triggered analog acquisition - N samples,
N channels.
There are 2 loops, one for the acquisition and one for user controls
for the graphs. When the user presses the STOP button the VI will not
stop because the WaitUntilDone VI is still waiting for the next
trigger.(Therefore it will only stop after the next trigger) Is there
anyway to interupt the wait until done and halt the VI?
Another question: When I stop this VI using the STOP button(The one I
have put) and then run the VI again the 2nd loop(controls for the
graphs) does not execute!
I am attaching the 3 VIs used. The main VI is skeletonv4.1. The other 2
are used as sub VIs.
Thanks!
Attachments:
skeletonv4.1.vi ‏286 KB
8_channel_splitter.vi ‏56 KB
formula.vi ‏42 KB

Loop 1 sets a local variable (X) to TRUE when it quits.
Loop 2 sees X = TRUE and quits.
You start the program again - BUT X IS STILL TRUE.
Loop 2 finishes before loop 1, sees X = TRUE and quits.
Loop 1 finishes, sets X = FALSE, but it's too late.
You need to set X FALSE, before either loop starts.
You are using code to set X.Visible to FALSE, you can do the same thing by popping up on the X terminal and choosing HIDE INDICATOR - you don't need code to do it.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks

Similar Messages

  • Wait until done

    Hi,
    When I launch a subvi from a vi using a call by reference node, how can I tell it I am not interesting in wait until done, similar to invoke Method:run VI where I can set wait until done to false.
    Thanks,
    ToNi.

    My problem is that from one vi I call another subvi and I pass several parameters using a call by reference node. I want from subvi, close reference of the vi but I can't.
    Using a invoke node I can't pass parameters to subvi but I don't need to wait until subvi done, but the problem is that I want to call subvi with a call by reference node because I need to pass parameters to subvi but if I use a call by reference I have to wait the subvi to finish execution and then I can't close the vi reference from my subvi.
    How Can I do it? I want to pass parameters from my vi to my subvi and from my subvi I want to close the vi that has called my subvi.
    Thanks,
    A lot of people from here have helped me with a lot of examples, but the problem is that these examples don't work when I pass parameters from my vi to a subvi and from my subvi close the reference of the vi that has called my subvi.
    ToNi.

  • Run SQL Agent Job in endless loop(When it's done, start over again)

    Hi All,
    There is an SQL Agent Job containing a complex Integration Services Package performing some ETL Jobs. It takes between 1 and 4 hours to run, depending on our data sources. The Job currently runs daily, without problems. What I would like to do now is to
    let it run in an endless loop, which means: When it's done, start over again.
    The scheduler doesn't seem to provide this option. I found that it would be possible to use the steps interface to go to step one after the last step is finished, but there's a problem using that method: If I need to stop the job, I would need to do that in
    a forceful way. However I would like to be able to let the job stop after the next iteration. How can I do that?
    Thanks in Advance...

    Seriously I cant think of a reason for continuosly running a step like this
    Do you mean you need to keep on polling db for something continuosly ?
    If thats the requirement there's no need of continuosly calling the step
    Instead of that you can include a loop with wait logic to keep on checking for your condition until it satisfies. You can WAITFOR clause for that
    see an example here where I've implemented similar logic in SSIS
    http://visakhm.blogspot.in/2011/12/simulating-file-watcher-task-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 can i fix my iphone i can't update or download apps, when i try it tells me toput my credit card info and i do but when i push done it tells me my payment has been declined, but why do i have to pay to update or download free apps. How can i fix this?

    how can i fix my iphone i can't update or download apps, when i try it tells me toput my credit card info and i do but when i push done it tells me my payment has been declined, but why do i have to pay to update or download free apps. How can i fix this?

    You must contact iTunes support to get the problem resolved.
    http://www.apple.com/support/itunes/contact/
    If there is a problem with your account or payment info, you cannot
    download anything (including free apps or updates) until the matter
    is resolved.
    In countries where the iTunes Store only sells apps, the accepted payment methods are Visa, MasterCard, and American Express. Other payment types such as gift cards, store credit, monthly allowances, ClickandBuy, and PayPal are not accepted. Depending on your App Store country, prices may be listed in your local currency, US Dollars, or Euros.    http://support.apple.com/kb/HT5552

  • When I click on video it is stuck on one tv show, when I click 'done' the screen goes black so I can't access any other video that I downloaded from iTunes onto my iPad 2. How do I troubleshoot?

    The video on my iPad 2 is frozen on a tv show, although it will play the tv show until the end. At the end, when I click 'done' the screen goes black so I can't see the other movies that I've downloaded. I've shut down a few times but it reverts to the same thing. How can I re-set the video feature or do what is necessary to get it working again?

    Have you tried resetting the iPad:
    Reset iPad:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • VI front panel won't close when it's done executing, when this vi was called by reference.

    I've created a simple vi set to demonstrate the issue I'm having. I'm dynamically launching sub vi's from a main application. Simply put the main application is my test exec and the subvi's I'm calling dynamically are different tests. In the example I'm posting here the test vi is called Electrical Test 1.vi. I've configured this Electrical Test 1.vi to show front panel when called and close afterwards if originally closed.  Problem is it won't close the front.
    Other things to keep in mind
    I want to be able to launch the test vi and not wait till it's done.
    I'm using LabVIEW 2012 SP1.
    Solved!
    Go to Solution.
    Attachments:
    vi_launcher - v5.zip ‏73 KB

    Basically the close after call only matters if the VI is called as a subVI (just like if you open a VI yourself and run it, it doesn't close when it is done).  The two ways around this are to either have your top lvl app close the VI when it is done, this is explained here:
    http://digital.ni.com/public.nsf/allkb/987B2026B41BD39786256CF800032E8C
    or to have your VI close itself when it is done.  Use a This VI reference and the Front Panel:Close invoke node.
    Hope this helps.

  • Post income crashes when "Waiting to update this Folder" appears in the outlook mailbox.

    Post income crashes when "waiting to update this folder" appears in the outlook mailbox (outlook 2007) We have already done the basic troubleshooting of remove the cached exchange mode, this does not resolve the problem. Also we have tried following
    on the MS article of basic troubleshooting
    http://support.microsoft.com/kb/842284 and KB2000071
    Many of the users now are facing this issue. OWA is working fine also mails on Mobile devices are working fine except for outlook client 2007.
    Can any one help.
    Regards,
    Pralhad
    Pralhad

    Hi,
    The Event Viewer can be a great help to determine the root cause of an issue or to find new leads in case regular troubleshooting of Outlook didn’t bring any results.
    Open the Event Viewer:
    Press Win + R and type “eventvwr” in the blank box, then press Enter.
    You may find the Error Entries for Outlook, also Event ID, text description after the crash happens, post the information in the forum and maybe we can find something useful to find the root cause.
    You may know more about Event logs from this article below:
    http://windows.microsoft.com/en-hk/windows/what-information-event-logs-event-viewer#1TC=windows-7
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • So I plugged my iPhone 4s into my computer to charge it and when it was done charging I fallowed all the steps to unplug it. However when I went into my music all my music was gone except for my purchased music and all of my ringtones were were gone too?

    So I plugged my iPhone 4s into my computer to charge it and when it was done charging I fallowed all the steps to unplug it. However when I went into my music all my music was gone except for my purchased music and all of my ringtones were were gone too?

    I have it set on manually manage music and videos. So there is no automatic syncing going on or anything like that. Yes iTunes was open and when i plugged in my phone i could see all the music and everything on my phone, everything was working like it was supposed to, I didn't have a problem until I unplugged the phone. 

  • What is iMovie doing after update?  How can I tell when it's done?

    "Updating" a whole lot of old iMovie events to the new iMovie 10 library.
    When I tried to trash the old events the OS warned that they were "still in use".  No problem, I thought.  Shut down iMovie, and then trash the old events.
    Well, when you try to shut down iMovie it tells you there are still "tasks being completed in the background" and that if you shut down they won't ever be completed.
    so......
    What are these tasks?  (iMovie 10, after a big import, is using about 20-25% of a CPU continuously, according to Activity Monitor)
    If I do shut down despite the warning what are the consequences?
    How can I tell when it's done and I can safely shut down iMovie? (I guess I sould wait and see if it ever stops warning me).

    Did you read the manual? It's usually explained on what does all this stuff mean on the screen. I don't think the manual that comes with the Micro isn't the player's guide but if you install the software I think, you can look it up by going through Start>Program Files>Creative>Creative Zen Micro>User Guide. This is the default directory.
    Anyway, yes your Micro is charging and if you want to play your music on your MP3 player while it's charging you can use Nomad Explorer to play the music on your computer or use Creative Mediasource to play the music and hear it from your MP3 player. You can't control your MP3 player so just use your computer. It's not that hard to learn.

  • Whenever I try to buy songs on my phone it goes through my credit card authentication process. When I select done it gives a message saying session timed out. What do I do?

    Whenever I try to buy songs on my phone it goes through my credit card authentication process. When I select done it gives a message saying session timed out. This has happened mulitiple times. What do I do?

    I figured it out!
    I read a solution for something that sounded similar.
    Anyone in similar position:
    Open iTunes app on iPhone, and pick an option from bottom, such as music. Then scroll down to bottom of page and where your iTunes ID is, press on it, and pick sign out.
    Then return to home screen, and double press home button and press and hold on first icon showing, until a minus symbol appears in the top left of icons present. Press on each minus symbol on each app in turn, until all app icons have disappeared. Then Restart the phone by pressing and hold the home button and the on/off/standby button at top of phone, until the apple symbol appears in centre of blank screen.
    Swipe to turn phone fully on and open settings and scroll down to iTunes and apps option and tap that. Pick sign in and put in your apple ID, it will accept it and then return to home screen and open iTunes a you'll find it works fine
    Simple really, but some like me won't think f this themselves!
    Hope that helps

  • I was updating my Ipad2 and when it was done it went to the apple logo and wont leave that screen it also will not charge

    I was updating my Ipad2 and when it was done it went to the apple logo and wont leave that screen it also will not charge. Ive tried resetting and it turns off for a second then come right back to the Apple screen.

    Try and force iPad into Recovery Mode:
    1. Turn off iPad. Press and hold the Sleep/Wake button for a few seconds until the red slider appears, slide to turn off.
    2. Connect USB cable to computer; leave the other end alone
    3. Press and hold the Home button down and connect the docking end of cable to iPad
    4. Continue holding the Home button until you see the "Connect To iTune" screen
    5. Release the Home button
    6. Open iTune (make sure you have the newest version of iTune)
    7. You should see "iTunes has detected an iPad in recovery mode"
    8. Use iTune to restore iPad
    Note: You need to be patient and repeat the above many times to recover your iPad

  • Why does my iPad hang when writing an email?  When I'm done with the email, I can't send it out and have to re-boot the iPad.

    Why does my iPad hang when writing an email?  When I'm done with the email, I can't send it out and have to re-boot the iPad. This happens if the time to compose email exceeds 10 to 15 minutes.

    Shut down all programs that are running in the background.
    1. Double-click the Home button to see Apps in background
    2. Hold the Apps down for a second or two until you see the minus sign
    3. Tap the minus sign to close program
    4. Reset iPad. Hold the Sleep and Home button down for about 10 second until you see the Apple logo
    Suggest you perform Step 1 to 3 at the end of every day.

  • Shouldn't my iPod tell me when it's done charging?

    When I usually see pictures it seems to indicate this but on mine it just keeps going Do not disconnect then when I dissconnect it goes to the regular screen when it's done will it tell me that it's sone? there's a little lightning bolt on the power bar.

    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • If I set Firefox to refrain from loading images automatically, how can I view a single image, or a single page's images, without having to enter the site in the Exceptions list, only to go back and remove it when I'm done?

    I was hoping for a hotkey option or button on the toolbar to load images for a single page for a single session at a time. Turning off images really saves bandwidth and speeds load time on websites, but sometimes I'd like to view the images on a page, but only for this session. Is that possible, or do I have to go to the Exceptions page and allow a specific domain or page to load images and then go back and remove that domain or page when I'm done?

    *Image Block: https://addons.mozilla.org/firefox/addon/image-block/

  • I'm downloading adobe software via my dad's account and when it's done loading, it has a message where it says it sent a verification email to my email address, but when I check it shows that it hasn't been set.  I keep clicking the resend email and it cl

    I'm downloading adobe software via my dad's account and when it's done loading, it has a message where it says it sent a verification email to my email address, but when I check it shows that it hasn't been set.  I keep clicking the resend email and it claims it does but it still hasn't sent the email to my address.  How do I fix this?

    It is probabl,y sending the email to your Dad's email address if you are using his account.

Maybe you are looking for