How can I stop a timed loop in the middle of its cycle?

Hello all,
I'm creating VI that will gather data from a series of thermocouples and outputing that data to a graph as well as to a spreadsheet file.
The sampling rate for each channel needs to be independent and variable. That is, they want to increase the sampling rate to 1/sec during temperature transitions, and then 1/10minutes (for example) when saturated.
I was going to use a menu ring for the user to select the sampling rate (1 second to 15 minutes, with 7 different rates in between) and then, using a case statement, select the value of how long the 'wait (ms)' should wait in each loop.
This kind of works with one major problem. If the user currently has the sampling rate set to 15 minutes, th
en wants to switch it to 1 second, it can take up to 14:59 for the 'wait(ms)' to finish waiting on the 15 minute wait before it switches to the faster sampling rate.
Is there a way to stop a 'wait(ms)' in the middle of its wait cycle? Or is there a better way of doing this?
Thanks in advance for your help.
Dave Neumann
[email protected]

"Neumannium" wrote in message
news:[email protected]..
> Hello all,
>
> I'm creating VI that will gather data from a series of thermocouples
> and outputing that data to a graph as well as to a spreadsheet file.
>
> The sampling rate for each channel needs to be independent and
> variable. That is, they want to increase the sampling rate to 1/sec
> during temperature transitions, and then 1/10minutes (for example)
> when saturated.
>
> I was going to use a menu ring for the user to select the sampling
> rate (1 second to 15 minutes, with 7 different rates in between) and
> then, using a case statement, select the value of how long the 'wait
> (ms)' should wait in each loop.
>
> This kind of works with one maj
or problem. If the user currently has
> the sampling rate set to 15 minutes, then wants to switch it to 1
> second, it can take up to 14:59 for the 'wait(ms)' to finish waiting
> on the 15 minute wait before it switches to the faster sampling rate.
>
> Is there a way to stop a 'wait(ms)' in the middle of its wait cycle?
> Or is there a better way of doing this?
Instead of using the wait ms.vi you could use 'tick count' at the beginning
of the loop and then have an inner loop that keeps checking the 'tick count'
until time minus time > time to wait.
You will need to figure out how to handle the case where the millisecond
timer wraps from 2^32-1 to zero. That should not be too difficult.

Similar Messages

  • How can I stop MS Outlook Mail in the outbox from being sent?

    I attempted to mail an email with a large attachment file.  One of the addresses was bad.  When my Outlook is running, the Mac tries to send it and shows the progress.  However, when I look in my Outbox the files are not there.  It does show up in the Outbox progress section but I can not delete it when it is there. 
    Where do these files reside?
    Is there a hidden Outbox??

    "Neumannium" wrote in message
    news:[email protected]..
    > Hello all,
    >
    > I'm creating VI that will gather data from a series of thermocouples
    > and outputing that data to a graph as well as to a spreadsheet file.
    >
    > The sampling rate for each channel needs to be independent and
    > variable. That is, they want to increase the sampling rate to 1/sec
    > during temperature transitions, and then 1/10minutes (for example)
    > when saturated.
    >
    > I was going to use a menu ring for the user to select the sampling
    > rate (1 second to 15 minutes, with 7 different rates in between) and
    > then, using a case statement, select the value of how long the 'wait
    > (ms)' should wait in each loop.
    >
    > This kind of works with one maj
    or problem. If the user currently has
    > the sampling rate set to 15 minutes, then wants to switch it to 1
    > second, it can take up to 14:59 for the 'wait(ms)' to finish waiting
    > on the 15 minute wait before it switches to the faster sampling rate.
    >
    > Is there a way to stop a 'wait(ms)' in the middle of its wait cycle?
    > Or is there a better way of doing this?
    Instead of using the wait ms.vi you could use 'tick count' at the beginning
    of the loop and then have an inner loop that keeps checking the 'tick count'
    until time minus time > time to wait.
    You will need to figure out how to handle the case where the millisecond
    timer wraps from 2^32-1 to zero. That should not be too difficult.

  • How can I stop receiving email automatically from the community when they have issues with there problems regarding the apple products.

    How can I stop receiving email automatically from the community when they have issues with there problems regarding the apple products.

    Click here for the instructions on stopping the emails.
    (85713)

  • How can i stop apps from running in the background with the new ios7 update

    How can i stop apps from running in the background with the new ios7 update

    Double tap the Home button...slide the last used view of the app(above the icon) up. Tap Home button when finished.

  • How can I shut down an epson printer half way through its cycle?

    How can I shut down an epson printer half way through its cycle?

    Command .(period) used to do the trick.

  • How can I stop acrobat dc continually loading the right hand toolbar on every pdf I open

    How can I stop the right hand toolbar continually loading in the new acrobat dc, it is infuriating and am getting extremely annoyed with it as I have to close it every time I load a pdf.  I use the arrow to close and it reopens on the next pdf.

    Yes very disappointed in how Toolbar functionality generally is so degraded with this DC version. It is as if the product designers have no idea how people use the product. And it degrades its most basic functionality, the ability to read a PDF. I am tempted to switch to one of the many other PDF readers which is one less reason for Creative Cloud.
    The default toolbar contains numerous sticky items that I have never needed in the past 15 years, as sticky icons anyway. That little cell phone icon, email, print, and now with Home/Tools/Document alongside with no ability to move them. These fill valuable toolbar space, the result being that side-by-side windows no longer display the toolbar items I actually use. I almost always have PDFs open beside other applications so this means 100% of the time the new design is flawed vs the prior. This is really really basic for any application: personalized toolbars. It was present in WordPerfect in 1993, for example. DC is not to 1993 UI standards.
    Get on this immediately, please. Specifically, get rid of the persistent right pane as many of us clearly do not want to use it "all the time" as is forced. And, allow the top toolbar to be fully customizable so those of us who have been customizing toolbars in our applications since 1993 can do so in this allegedly state of the art PDF reader.

  • How can I stop Firefox 4 from displaying "The document cannot change while Printing or in Print Preview" from appearing every time I click on File/Page Preview?

    Clicking on File/Page Preview in Firefox 4 brings up a warning dialog "The document cannot change while Printing or in Print Preview" every time. How can I stop this from happening? It is very annoying, and it is necessary to click "OK" on this dialog twice before it will go away. Thank you.

    Does it behave that way in [[Safe Mode]] ?
    If it doesn't, then one of your add-ons in the culprit.

  • HT1689 How can I stop multiple automatic downloads of the same item?

    Why does iTunes keep wanting to download the same item over and over again? How do I stop this without turning off the automatic download function.

    You may click on the "+" button to the right of the first multiple choice box to add more in the same line. When you hover over the button, the tooltip says "insert item beside".

  • How can I stop iMessage sending messages to the wrong device

    Hi,
    got a small problem with iMessage. I have an iPhone and and iPAD,both of which hace iMessage enabled. My wife has an iPhone on a differenet service provider. I send her messages from my iPhone and they arrive o.k. However, when she replies or sends me one, they appear onm my iPAD. I've always got my iPhone but not my iPad with me.
    How can I persuaded whatever is doing this to stop it and just send messages back to my iPhone?
    Rgds
    A

    http://kb.mozillazine.org/Delete_a_message_without_opening_another_message

  • How can I stop Firefox from putting up the question Do I want to have Firefox as my seach?

    Foxfire asks if I want it be my search every time it starts. How can it be stopped?

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • How can I stop my browser crashing all the time?

    My browser shuts down frequently for some unknown reason. Once it crashes at a particular website, or place on a website, I can almost never access that point again, the browser will close every time I try to go there.
    I've been using Firefox, but I've tried other browsers, and it happens with all of them. I was getting the message box, "Browser closed unexpectedly", with the option to restore the session or start a new one. I had to download an upgrade, to the newest Firefox, in order to use Turbotax. Now the message is "We're sorry, Firefox crashed unexpectedly", with options to start over or restore session.
    If I restore the session, it just crashes again if I try to return to the point I was attempting to access.
    There was another person who posted about this same problem, and was advised to use the Disk Utility to repair the disk. I followed the directions, did the disk repair, etc., but it's still closing unexpectedly. It doesn't seem to be happening as often, but I can't access Turbotax now. It closes every time, while I'm waiting for the site to create a secure connection.
    I'm on dial-up, too. I don't know if that has anything to do with it. I hope not, as that's my only option at this time. I'm in an area that has frequent power outages, so I shut my machine down whenever I'm not using it. I have been caught by surprise a few times, and the power has gone off while I was using the computer. I don't know if that could have caused this problem to develop.
    Anybody know why this happens, or more importantly, how I can fix it?

    Thanks, but no, it doesn't help. That's basically trouble-shooting Safari. The problem is with my system, I'm not using Safari, though I've tried it. I tried Safari, Firefox, Opera, and Seamonkey, they all do the same thing, at exactly the same websites.
    I know I need to update. I'm on dial-up and haven't been able to update. I don't have someplace or somebody I can go to to access via high-speed. There are no internet cafes around here. There are no Apple stores around here. You can't get an update disk from Apple, which seems really ridiculous to me, but if you don't have high speed access, they don't really seem to care about doing anything whatsoever to help you out.
    I realize there are not a lot of us out in the sticks, but we do exist, there really are still places without all the bells and whistles.
    Thanks anyway, I'm working on finding out how I might be able to score an update. If can get that, if it still boots me out, I'll re-post.
    My thanks to all who responded. I appreciate your time.

  • How do I stop iOS update notifications in the middle of the night?

    How do I stop the iOS update notifications in the night. I do not need bright white update message while sleeping.  

    Settings App > Notification Center > App Store. You can take it out of Notifications altogether, or adjust the settings. (Turning OFF Show in Lock Screen might be enough).

  • How can i stop my family getting having the option of getting my text messages

    We have a family itunes account, recently I discovered that my children started receiving my text messages on their iphones.  I have removed the option of where the messages can be reached in the imessage settings.  But I don't like that they can access it if they want.  Should we have our own itunes account and is there a way we can share our music as we do at the moment.

    http://kb.mozillazine.org/Duplicate_messages_received

  • How can I stop a JFrame from taking the focus?

    Hi,
    Please see my original post in the Java Event Handling forum:
    http://forum.java.sun.com/thread.jsp?forum=424&thread=565034&tstart=0&trange=15
    Sorry, for cross-posting but its been nearly a week and I have had no replies. This forum looks a bit more active.
    - David

    try this...
    JFrame frame = new JFrame();
    frame.setFocusableWindowState(false);setFocusableWindowState
    public void setFocusableWindowState(boolean focusableWindowState)Sets whether this Window can become the focused Window if it meets the other requirements outlined in isFocusableWindow. If this Window's focusable Window state is set to false, then isFocusableWindow will return false. If this Window's focusable Window state is set to true, then isFocusableWindow may return true or false depending upon the other requirements which must be met in order for a Window to be focusable.
    Setting a Window's focusability state to false is the standard mechanism for an application to identify to the AWT a Window which will be used as a floating palette or toolbar, and thus should be a non-focusable Window.
    Parameters:
    focusableWindowState - whether this Window can be the focused Window

  • How can i stop my computer from losing the wi-fi link

    My computer keeps "losing" the wi-fi in my home and making me sign in over and over.  It recognizes the network and doesn't require me to give the password for the network, but it asks me for the password required to make network changes.  It has done this for a couple of years now.  It is inconsistent.  About half the time, it works fine, but then it will say your preferred network is not available.  Then it will show that network as the only one available and require the password for making network changes again.  I have gone into the network utility and "locked" it after making the changes, but it doesn't make any difference.

    If it's happening after a period of shutdown and a startup, then try only sleeping the Mac Mini instead of shutting it down. (Besides, sleeping a Mac is easier on the hardware and perfered over shutting down)
    For example: my Mac's only get shut down when I go away for more than a couple of days and can sleep for weeks without any problems.

Maybe you are looking for

  • Line Item Text in MIGO: needs to be populated in Material Doc#.

    Hi Friends , Can we  have the solution of this query "When I am doing Goods receipt I am entering some text in the text field in the where tab of the item. But this is not creating any corresponding entry in the mseg table. Again if go to change mode

  • Problem in select querry with select option

    Hi all, How have a problem with the select querry, Pls correct my querry select opbel gpart betrw fdgrp into table lt_balance from dfkkop                   where fdgrp in s_augrp                     and hvorg = '5000'                     and tvorg =

  • Adding subtitles (.srt) to an avi file permanently.... also combining files

    I have a movie in french that i am able to view with subtitles in vlc but i want to be able to convert the avi files into mpeg-4 so im not sure how to combine the subtitles and the video together. Also, since the movie is in two parts i was wondering

  • Teststand sockets

    TestStand using sockets, I have two Teststand sequences and I would like to condition the sequence to run using sockets. The two sequences are called from a Main Sequence. The test environment is connected to a database through a custom barcode inter

  • Problems with Win XP drivers on a Satellite A200-1FL (PSAE06E)

    Hi, I have problems with a WinXP 32bit installation (downgrade of vista 32bit): with the sound, with two pci devices and with the mass storage driver. Xp install some sound drivers: codec, imported or generic controller... I dont know,... but it does