Is there a way to immediately abort a timed loop

Im writing a program that when completed, could run for a very very long time. But I need a timed loop to execute every 60 secs. The two option I have come up with are these
1. Timed Loop executing every minute
2. Timed Loop executing every second, but processing the contents every minute.
First way means I can't stop the loop until the time expires (more desirable than the 2nd option), the second option relies on the ability to determine when a minute is up based upon a 1Hz iteration rate, but from what I am reading, the iteration counter will eventually get to its max value and just hold its value, while the loop continues to execute (hence I lose my logic for content execution)
I'm really hoping there is a way to do an immediate abort of a Timed Loop, but i'm not finding a way, lol
Solved!
Go to Solution.

If you want to use a timed loop, you can stop it at any time using the Stop Timed Structure tool. (even if the conditional terminal is hardwired to never stop!)
For example in the following code draft, pressing the stop button will stop and complete the timed loop immediately, no matter how long the interval is.
(Note: Configure the timed loop to get the current name, or set your own)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
StopTimedStructure.png ‏12 KB

Similar Messages

  • Is there any way to use a For Each Loop for each property of an User Defined Type?

    Is there any way to use a For Each Loop for each property of an User Defined Type? That would be very handy!
    Jorge Barbi Martins ([email protected])

    Alas, no, not in VBA.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Is there a way to display the song timing/duration?

    I have a new 6th generation iPod Nano. Is there a way to display the song timing? Sometimes I want to fast forward to right at the end. I guess I miss the click wheel when I could zoom right to the end without just holding down the arrow and guessing about when I'd get there. Is there a way to access this function on the new nanos?

    You're welcome. You can find the manual for the 6th Generation Nano here: http://manuals.info.apple.com/enUS/iPod_nano_6thgen_UserGuide.pdf

  • Is there a way to stop flash player from looping on someone elses website?

    Is there a way to stop flash player from looping on someone elses website?
    The longer we have the site open the more memory it uses as flash continues to loop.

    how can i use flash player on my website http://howhut.com/ its a tutorial website and i want to use my own flash player instead of using embeded code from other video websites. Is there any way?

  • How do I acquire waveforms in LabVIEW on multiple trigger conditions on a Tektronix TDS5000 scope? The signals are fast, so is there a way not to use a simple loop in LabVIEW?

    The signals are fast, so is there a way to acquire them without losing information? Do I have to use a loop in LabVIEW that just acquires when the trigger conditions are met?

    Hi,
    I would assume that the instrument has some sort of buffer that could store data while you are trying to download it. If this is not possible, you could use one of our DAQ cards to acquire data.
    Hope this helps.
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • Is there a way to pre-record the timing of the slides and effects in a keynote presentation, so that you can present it without having to press anything?

    Hi! It would be great if someone could tell me how to pre-record timings in a keynote presentation, so that when presented, it plays by itself, based on the pre-set recordings. I know there is a way to do it by going to      Inspector>Document> Audio> Record          However when you do this, your computer also records the sounds it picks up with the microphone, which can greatly affect the sound. I have Keynote '09. Thanks in advance!
                                                                                                                                                                                                    -AppleMe123

    Open the Settings app > Notifications > Messages. Scroll down adn turn OFF "View In Lock Screen". You may want to consider setting Alert style to none, but this will not impact what happens when the screen is locked.

  • What is the best/most effective way to dynamicall​y build a timed loop in LabView?

    I am relatively new to labview (not to code in general) and am looking for the "LabVIEW" way to dynamically build a timed loop. This is what I am trying to accomplish:
    I have several heaters controlled through labview using Labview's PID toolkit. This works great. I have no issues with DAQ in general. However, throughout an experiment, I want to change the set point of each heater. I could set this up fairly easily using either a timed loop or the wait vi if I knew exactly how many different set points there would be.
    If possible, I would like to be able to read in a config file that includes the different times and set points for all heaters and dynamically create a loop that can handle this. I have tried using the Elapsed Time vi with an array of time targets; however that didn't seem to work.
    Has anyone been able to do this? Does anyone know where I could learn about using LabView in this manner? All help is appreciated.

    DHagan wrote:
    I am relatively new to labview (not to code in general) and am looking for the "LabVIEW" way to dynamically build a timed loop. This is what I am trying to accomplish: I have several heaters controlled through labview using Labview's PID toolkit. This works great. I have no issues with DAQ in general. However, throughout an experiment, I want to change the set point of each heater. I could set this up fairly easily using either a timed loop or the wait vi if I knew exactly how many different set points there would be. If possible, I would like to be able to read in a config file that includes the different times and set points for all heaters and dynamically create a loop that can handle this. I have tried using the Elapsed Time vi with an array of time targets; however that didn't seem to work. Has anyone been able to do this? Does anyone know where I could learn about using LabView in this manner? All help is appreciated.
    Write a tab-separated spreadsheet file makes it easy to use the write/read from spreadsheet files. Assuming you have a 2D-array of your times and set points it's just a question of setting up a for-loop going through the array row-by-row and extract the elements (expanded index array) to set your points and wait time.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • HT4889 Is there a way to abort a transfer of data from an old MacBook Pro to a new one when you're using Wi-Fi?

    Is there a way to abort a transfer of data from an old MacBook to a new MacBook Pro when you're using Wi-Fi?

    If you are sure you want to to do it: command + option + esc, then and Force Quit.
    ethernet is much faster than wifi.

  • Is there a way to abort a processing thread

    Straight forward question... How do I handle timeouts for server-side script execution in a web server?
    Let's say I have a very simple server that only handles one request at a time... A request arrives for a webpage including a piece of some server-side script (that may contain an infinite loop). My server parses the request and starts executing the corresponding script in a new thread. Now, I could do join(timeout) on this thread and then call stop() if the script is still executing... the problem is that stop() is depricated and thus it feels like the wrong approach. But what are my alternatives?

    >
    Re: Is there a way to abort a processing threadNo, there isn't.
    Straight forward question... How do I handle timeouts for server-side script execution in a web server?From the client end or on the server? If it's on the server see the first reply
    Let's say I have a very simple server that only handles one request at a time... A request arrives for a webpage including a piece of some server-side script (that may contain an infinite loop).In general, this is a very very bad thing. You never want to expose functionality to a client that could put you into an infinite loop or kill your system somehow.
    For more information, google for "SQL injection", see what that is and why it's very very evil
    My server parses the request and starts executing the corresponding script in a new thread. Now, I could do join(timeout) on this thread and then call stop() if the script is still executing... the problem is that stop() is depricated and thus it feels like the wrong approach. But what are my alternatives?Stop() is not only deprecated, but it's not implemented / non-functional (at least on my machine).
    The best alternative is not to run anything that you aren't confident at compile time will return in finite time.
    Another alternative that I do not recommend is that there is a debug API... I forget the name - something used in IDEs to get the state of threads + mem, etc. Honestly, I don't think that even that will allow you terminate a thread, but you might want to look into it.

  • Is there any way to re-print a gift certificate? I bought one but could not print it immediately and there isn't any redemption code on my receipt.

    Is there any way to re-print a gift certificate? I bought one but could not print it immediately and there isn't any redemption code on my receipt.

    Try here >  iTunes Gift Options
    To search for printing help on that page, on Windows press Control + F
    On Mac Command + F

  • I was putting a SD card in my Imac in what I thought was the SD slot and I accidently put it in the DVD/CD slot. I turned it off immediately. Is there a way to get it out?

    I was putting a SD card in my 20 inch Imac in what I thought was the SD slot and I accidently put it in the DVD/CD slot. I turned it off immediately. Is there a way to get it out? Thanks.

    Removing SD card from iMac CD Slot

  • When using an Apple TV, any new device that logs on immediately takes over the display.  Is there any way to prevent this and maintain the control from a designated device?

    I would like to designate a single device to control the Apple TV, but anytime another device enters and logs on it takes over the display and whatever is on that screne appears.  Is there a way to set the Apple TV so this does not happen?

    Glen beck is a conservative news commentator , he now has a tv Chanel broadcasted only by the Internet, is is GBTV I get it on ROKU. I cannot get that or FOX NEWS or CNET on my new apple TV. Love the new device with the exception of my missing networks. By the way, thanks for the remote advice it works great.

  • Is there any way to contact verizon with a detailed cell phone technical support question?

    Is there any way to contact Verizon with a detailed cell phone technical support question?  I prefer e-mail so as to provide details (like I am trying to provide here).  I have tried in-store personnel (no help at all) and the web chat - they just want to see me more data instead of helping me with my basic problem!
    I CAN NOT GET ANYONE FROM VERIZON TO GIVE ME ANY HELP NOR CAN I FIND A WAY TO FILE A COMPLAINT.  AT THIS POINT I JUST WANT TO DROP MY VERIZON ACCOUNT BUT I'M SURE THAT IT WILL COST ME A SMALL FORTUNE TO GET OUT OF IT.
    Here is my issue:
    Chat transcript removed as required by the Verizon Wireless Terms of Service
    BELOW IS A SCREEN COPY FROM REDDIT ABOUT SOMEONE WITH THE SAME PROBLEM WITH A VERIZON CELL PHONE
    So last night my RAZR MAXX HD did something totally bewildering by spontaneously downloading 2.6 GB of data over the course of ~ 3 hours. Fortunately I was able to catch this problem before it ended up being really expensive, but I still exceeded my 2 GB data plan by 600MB.
    The Culprits:
    Reddit News Free: 160 MB foreground / 0.96 GB background
    Android OS: 0 MB foreground / 1.18 GB background
    Several unnamed applications: ~ 350 MB
    Screenshots:
    The massive data spike
    Android OS data usage
    Reddit News Free data usage
    Weird unnamed processes
    Detailed timeline:
    5:12 PM: Incident begins according to VZW data usage website (2.60410 GB used). This is around the last time that I used my phone at the laundromat before getting dinner and watching Game of Thrones.
    8:04 PM: 50% of data allowance used (txt msg)
    8:31 PM: 75% of data allowance used (txt msg)
    8:58 PM: 90% of data allowance used (txt msg)
    9:13 PM: 100% of data allowance used (txt msg)
    10:05 PM: Got the text messages and immediately put the phone into airplane mode
    10:30 PM: Took screenshots
    10:45 PM: Enabled wifi, installed Kaspersky premium. Scan returned no threats.
    11:00 PM: Left phone in airplane mode, went to sleep.
    The questions:
    What was the root cause of this issue? Did Reddit News freak out as a result of an esoteric bug or was my phone hacked?
    If this was a simple Reddit News bug, then why was the Android OS also trying to use such a massive amount of background data?
    What the hell are these unnamed numeric applications? I've inspected my process history and this is the first time they have ever attempted to use data.
    I'm pretty sure that I can explain this situation to Verizon and get out of having to pay additional data usage fees, but I would like to know more about the problem before I get in touch with them.
    all 13 comments
    best 
    [–]omgmrjmako/PA, deb/Carbon 3 points 1 year ago*
    All I can think is your phone may have background downloaded an OTA update, and you'd then be prompted with something like, "As update to your Android system has been downloaded, would you like to install it now?"
    I do find it very odd that the update would be 2.6GB. As a rough base, the CyanogenMod 10.1 firmware for your device is well under 200MB, so unless Verizon has a ****-ton of bloatware in the update, or it had to attempt to download multiple times for some reason, it may be a stretch.
    But doing a little homework, it looks like the Verizon Razr Maxx was updated to 4.1 in late March. Maybe they're still rolling it out in waves? Have you gotten the update yet?
    Edit: Aaaand I just noticed you appear to be running an AOSP-based ROM, which totally rules out a carrier update being sent out.
    Edit2: If you want to live dangerously, you could try running:
    #kill -9 12289
    That 12289 is the PID listed in your screenshot. But don't run that without fulling understanding the kill command.
    The ps command could also be of use, but probably not.
    permalink
    [–]lechnito[S] 2 points 1 year ago
    I can confirm that the phone is currently at 4.1.2 and that I wasn't prompted for an OTA update.The fact that both the Android OS and Reddit News processes were simultaneously using an extremely large amount of data is unlikely to be a coincidence... 
    permalink
    parent
    [–]omgmrjmako/PA, deb/Carbon 3 points 1 year ago
    That is very curious that the spikes happened at the same time.I'm curious. It may have put at least some of that 2.6GB somewhere. You could use a data visualizer tool to see if you can find it, which may lead to more clues. 
    permalink
    parent
    [–]lechnito[S] 2 points 1 year ago
    The largest directories are:
    DCIM: Normal looking photos (90,825 KB)
    Android: Primarily map cache data (64,846 KB)
    If it was downloading content then it did not significantly save content to storage. It's not like I have anything particularly sensitive on the phone, but the idea that it was uploading a snapshot of my data definitely makes me uncomfortable.
    permalink
    parent
    [–]omgmrjmako/PA, deb/Carbon 2 points 1 year ago
    Yup, Digital Camera IMages and videos.Somewhere in /sdcard/Android would be my guess as to where a mysterious file would be downloaded, but if it's only 64MB, and mostly map data, I'd safely rule it out.I'm sorry, but I'm stumped here.Edit: I should mention I don't think this is malware, because unless a malicious app gained superuser access, any data it used would show under it's own apk in the data usage list, not Android OS. 
    permalink
    parent
    [–]mistrbrownstone 0 points 1 year ago
    DCIM: Normal looking photos (90,825 KB)
    Was it trying to auto-upload pictures or video to G+?I ******* hate that.
    permalink
    parent
    [–]lechnito[S] 1 point 1 year ago
    Although I'm not really up to speed with the Android platform, I come from a UNIX background so I feel comfortable running commands. How do I pull up a bash terminal? Do I need to root the phone first? 
    permalink
    parent
    [–]omgmrjmako/PA, deb/Carbon 2 points 1 year ago
    There's a number of terminal emulators in the Play Store that work well. You don't need a rooted phone to get to the shell as your user, but any privileged command won't execute unless you can grant it permission from the Superuser app that is installed when you root the device. So you could probably do a ps -e, but not a kill -9. 
    permalink
    parent
    [–]lechnito[S] 1 point 1 year ago
    Got it. I downloaded a terminal emulator but unfortunately those processes no longer exist.Does Android keep a generic log of system level events like /var/log/syslog? 
    permalink
    parent
    [–]omgmrjmako/PA, deb/Carbon 2 points 1 year ago
    I don't think so, and I know you'd need superuser permission to read most of the files in /var/log anyway. I'm not super familiar with how Android does its logging, but I do know that the two files of interest are the logcat and dmesg. 
    permalink
    parent
    [–]sh0nuff 1 point 1 year ago
    Want to mention here that using your settings to set your data cap (set it on your billing day), then you won't go over again.Those text messages are really unhelpful, as they send out well after the data has been used. Chances are good you hit close to the 2GB mark before you received the bulk of the messages. 
    permalink
    [–]kindofabuzz -4 points 1 year ago
    Quit installing pirated apps. 
    permalink
    [–]lechnito[S] 1 point 1 year ago
    That's definitely not the case here; both my PC and and Android phone are free from pirated apps.

    You used the data.  Verizon can not see what it was sued for.  However your phone can see whats apps used the data.  go to settings-data usage- there will be a place that says data usage cycle.  line the dates up with your cycle.  then there will be a bar graph below that   extend bother white bars one all the way to the left and one all the way to the right.  after those are extended below that will be a list of apps,  there should be one that used over 2 gb and that will show you what app used that data in her purse

  • Is there a way to create a playlist from the now playing screen on ios7?

    Is there a way to create a playlist from the now playing screen on ios7? I want to be able to hear a song in my collection and immediately add it to an existing playlist or create a new playlist.
    Thank you in advance

    Hi Cornellius,
    From the now playing screen there's a Create button at the bottom that allows you to create a
    Genius Playlist
    New Station form Artist
    New Station from Song
    IPhone Help, Browse and play
    http://help.apple.com/iphone/7/#/iph3cf21a82
    The Now Playing screen provides playback controls and shows you what’s playing.
    For information on Genius Playlists, see
    Archived - Genius for iPod and iPhone
    http://support.apple.com/kb/HT2978
    I don't see an option to add it to an existing playlist.
    Best Regards,
    Nubz

  • When I attempt to open a PDF file I saved from a website, I get the message "There was an error opening this document. The file is damaged and could not be repaired." Is there any way to correct this problem?

    When I attempt to open a PDF file I saved from a website using Safari, I get the message "There was an error opening this document. The file is damaged and could not be repaired." When I save the same PDF file using FireFox it opens up immediately. Is there any way to correct this problem with Safari?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

Maybe you are looking for