Expire loop delay

I need to expire a loop delay timer that has a long interval (roughly 5 minutes or more) so the user can stop the application using the UI and not have to wait 5 minutes for the timer to expire. Any ideas? Thanks ahead of time for your response.
I could use a "Halt" but this will not let the loop complete the final cycle and properly stop.

Place your code inside the loop in an event structure with a timeout of your desired loop delay. Now add a second event to break it.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Best way to capture data every 5 ms (milli-seconds) in the .vi diagram when using "Time between Points, and Small Loop Delay tools" ?

    - Using LabView version 6.1, is there anyway to change the "Time Between Points" indicator of (HH.MM.SS) to only (mm.ss), or to perhaps only (.ss) ?
    - Need to set the data sampling rate to capture every 5 milliseconds, but the defaults is always to 20 or greater; even when the "Small Loop Delay" variable is adjusted down. 
    Thank you in advance.

    I have no idea what "Time between Points, and Small Loop Delay tools" is. If this is some code you downloaded, you should provide a linke to it. And, if you want to acquire analog data every 5 milliseconds from a DAQ board, that is possible with just about every DAQ board and is not related to the version of LabVIEW. You simply have to set the sample rate of the DAQ board to 200 samples/sec. If it's digital data, then there will be a problem getting consistent 5 msec data.

  • Loop delay when using two VI's with picture controls simultaneously

    Hey all,
    I have observed an odd behavior and I'm not quite sure why it happens. I have two VI's that are mapping GPS coordinates onto XY graphs that are displayed on top of picture controls. When the maps from both of the VI's are visible on screen the loops get delayed by as much as a second, but if you just cover the map portion with another window they go back to looping at twice a second as they should. It took me a little while to figure this part out, let me tell you. There are no computing limitations that should be affecting it since my CPU is only at 10-12% and have 4GB of RAM available. I checked the GPU too just in case and it was sitting at 3% usage, so no hold up there. Anyone have any experience with something like this happening to them? It has me stumped.
    I though it might have to do with how LabVIEW handled them, so I went ahead and made them into EXE's and tried it out with the same results.
    Thanks in advance for any help or suggestions,
    dnorman

    dnorman wrote:
    Is it possible to run the redraw of the picture tiles in parallel, on multiple cores, if they are going into the same control?
    I doubt it. Even if the picture control wasn't pretty old (and it is), I don't know of any mechanism which will give you this level of control.
    Here are potential options. I have no idea if they will help:
    Instead of building separate commands, process the data in such a way that you have a single raster image (i.e. a 2D array) to place into the control. I believe this should be faster.
    Use another type of display (such as a .NET indicator).
    Instead of using the XY graph, overlay the data directly onto the image (there should be some graph VIs in the picture palette which might help).
    Try defering panel updates before updating all the controls and undefering after. I don't think this will help, but it's probably the easiest change to make.
    Try to take over the world!

  • Jmf voip audio problems (loops, delay)

    Hi,
    Im here with a lots of audio problems. Im testing a simple voip app.
    The system is winxp, sb live , 3 gb ram, celeron 3ghz
    with JAVASOUND:
    Loops in sound appear randomly and bad sound quality (i give it up javasound)
    with DSOUND:
    Random delays in conversations(0-7secs) but no loops at all and good sound.
    Pleople complain about the 0-2 secs delay in DirectAudioRenderer...here i am having 0-7 secs! is just me?!?
    Some interesting things:
    I found that the delay is most of the times unidirectional and when the user that DOES NOT HAVE delay makes a mute (stream.stop()) for 5 secs at least, the delay disappears "completely" in the other side!
    When the delay is bidirectional, both have to stop the streams (mute) for some time in order to the audio to "synchronize".
    Another thing that seams to help minimize variable delay is starting the receiver player about 5 secs after the RealizeCompleteEvent ( the java examples start teh player imediatly)
    Could anyone ever confim this behaviour?
    If there is any other solution other than messing with the sources i would be preciated!
    Thanks
    Edited by: maxupixu on Mar 26, 2010 8:50 AM

    >
    > Yes...i see some "?"
    I see you making a bunch of declarative statements based on your observations on a system you've not given much technical detail about, and then asking questions that border on being rhetorical.
    And I can see a request for a possible solution... You asked for a solution to a problem you're having with an application you didn't remotely talk about how you'd implemented ANYTHING. So how you expect anyone in the world to offer you a solution to your vague babble about 5 to 7 second delays in an application they know nothing about is beyond my comprehension.
    Do you think its always required a question to get someone to share some information? I actually walk down the street and crazy people offer to hand me their manifesto, religous people shout out my damnation and/or give me copies of their handouts and religeous texts, I go to a football game and people hand me pamphlets for their political candidate, and I'm often handled fliers with information / meeting times for student organizations on campus. And dude, RSS feeds, man...the RSS feeds just push out information all day long, man. It's amazing! All the information being given to me without asking a single question of anyone / anything...
    But yeah, if you want help with something on a coding forum, you'd be better of asking a damned question instead of sharing your observations about what your unposted, undescribed code appears to be doing and expecting someone to share information about where 5 seconds may have came from...
    Regardless, I'm going to suggest that a normal program travels significantly closer to the speed of light than your implementation does, and as such, you're experiencing a problem with time dilation. I'd recommend you google around for the special theory of relatively, and make appropriate corrections to your inertial frame of reference. With the amount of information you've presented, that's as good a theory as I can offer.
    And I'm officially done with this thread.

  • Alarm Tone Loop Delay

    The other day, I made a custom ringtone loop and loaded it onto my iPhone. In iTunes, the loop sounded perfect; when I tried the tone as a ringtone, it also worked perfectly. However, when I try to use the same tone as an alarm tone, there is a short pause before the loop, which causes the tone to not loop seamlessly. Is there a reason for this, and is there any way I can fix it, such as editing the tone file?
    I tried searching for this on the web, and I kept getting results either for online custom tone makers or the old iTunes ringtone maker.

    Hi,
    same problem here in the UK. Got the iPhone 4 in June...British Summer Time - BST - ended on Saturday night...our iPhones failed to wake us up this morning because although they had automatically updated to the correct time, the repeating alarms continued to think it was an hour later...
    I wonder how much money companies will have lost this morning due to iPhone users turning up late for work! ;-/
    I have called the UK iPhone support today (0844 209 0611), which costs £0.05 per minute if you are beyond the free 90-day support allowance...and they suggested resetting everything in settings! Or maybe doing a 'restore'. If you're reading this, please call the support line because when I rang they said they had not had any calls about the problem. So the more people who lodge a complaint, the more likely it is that Apple will do something to help us. Have you see forums elsewhere on the internet? It seems this is quite a problem for a lot of people.
    Obviously this is not the end of the world but it is a slightly irritating bug

  • Delay/Timer only in a conditional loop.

    Hello,
    I want to use a delay(or some kind of timer) within my
    program. I intend to use to it within a conditional loop. Specifically,
    if a particular condition is true, then I want to wait for 50ms and
    then check another condition, which if true, I want to stop my program.
    I have used wait vi in the timing section. But this vi pauses my
    whole program. Specifically, when the above mentioned condition is met,
    I want the delay vi to execute along with my data acquistion vi. At
    present, when the delay vi executes, everything (data acquisition, peak
    detetction, plotting etc) in the program pauses. I guess its correct
    functionality of wait vi but it does not suit my need.
    Does someone have any alternate for pausing (delay/timer) a
    particular condition loop without affecting the other parts of my
    program? Specifically, only the conditional loop delays for a certain time while other features like data acquisition, peak
    detetction, plotting etc excute normally.
    Message Edited by Neuropotential on 02-22-2010 12:47 PM
    Message Edited by Neuropotential on 02-22-2010 12:48 PM
    Solved!
    Go to Solution.

    Yes. This is exactly what I was looking for. But, there is a issue. In practise, i will not be looking at 10 sec delay but a very small number like 50 ms. With this approach, when I set a value of 50ms, my program stops after close to 90-93ms (After 50ms, there is a AND gate, when true stops the program; Refer to the attachement).
    There are multiple reasons which I see. First is obvious I am using a windows xp with lot of other stuff going on simutaneously. Also. elapsed time vi is an "express vi". Do you think this can be one of the primary reason for such a delay? Finally, I intend to use this program on RT based machine.
    Do  you see it working exactly as expected on those machines or do I have to modify my code? Please guide me. 
    Also, how to I mark your post as answer and other good things. 
    Thanks 
    Attachments:
    Image.JPG ‏60 KB

  • Random delay between WHILE loop during acquisition from DAQ

    I am working with the NI DAQ USB 6259.
    My purpose is to acquire data from an analog voltage input. My problem is showed in the attached image and consists in a RANDOM time delay between the execution of two consecutive while loop that contains the acquisition and the writing operations.
    If you observe the image attached, you can notice that samples are taken at regular interval (which I can specify) only within one loop, then between the instant of the last sample of one  cycle and the one of the first sample of the next cycle, a random delay occurrs.
    I attach also my block diagram which is very simple.
    I am forced to use the option "N samples" in the daq assistant because if I use continuous acquisition an error is returned, I guess because my acquisition can last minutes.
    It's like I were blind for a random duration between consecutive iterations of the while!
    Do you know an alternative solution to avoid this problem or its solution?
    Best regard,
    Roberto Rodio
    Attachments:
    while loop delay.jpg ‏52 KB
    block diagram.jpg ‏42 KB

    Have you tried to execute this without the writing to the TDM file?  I suspect that is where your delay is happening... So I propose you delete that from your block diagram... and execute your loop... if that works, you will need to move your file write to somewhere else in the process... possibly a parrallel loop... If not, consider stripping down the express VI you use for your data acquisition... The delay could be in that express... setting up, starting, acquiring and stopping the daq task... In which case, you can right click on it, say open diagram... or open vi or something similiar... LabVIEW will tell you that it must convert the VI, so OK (you can alway undo)... I am not sure what else you have going on... so you may already be doing that... but that is the first two places I would look.
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • How do I correctly time while loops using SCPI and VISA/Ethernet communication to send DC current Values to a Power supply?

    I'm rather new to using labview and I having an
    issue with a test Data Aquisition lab I'm trying to setup using a
    Keithley 6221 AC/DC current source and a basic PCI M-series NI-DAQmx. 
    First of all, I'm looking to update the  current value on a power
    supply at a rate of atleast 10Hz and I'm using SCPI commands and VISA
    communication through ethernet to do so.  Attached below is the VI I
    have written. 
    The issue I'm having is this:
        My VI will
    loop through the values fine in software, or so it seems.  I am unable
    to get the Power supply to update sequentially if I don't set my loop
    delay to anything greater than 130ms.  If I try to run the loop faster
    it starts skipping values instead of counting 1,2,3,4,5,1,2,...etc.  it
    goes 1,2,4,5,2,4,1,2 on the display of the power supply and my DAQ unit
    also skips these values so I know that the number just isn't getting
    read to the Power supply in time.  I was wondering if this was due to
    my sloppy programming or if it is a hardware issue, my computer or the
    method of communication to the power supply?  Is this due to the fact
    that I'm using ethernet and VISA communication?  Is there a faster way
    to communicate or is GPIB faster?  Any input at all would be extremely
    helpful.
    On a side note:  Right now I'm using an pre-determined
    array of values that I can update on the fly but in the future this
    with be put into a  closed-loop control system.  The value for the
    power supply output will be determined by the loop and sent that way.
    Attachments:
    basic DC loop 6221 Keithley.vi ‏145 KB

    Also, one of the string constants is NOT set to '\' Codes Display. Here is an alternative method of calculating the index. I removed the DAQ and VISA stuff since I could not run it.
    Lynn
    Attachments:
    basic DC loop 6221 Keithley.2.vi ‏16 KB

  • No difference between using a local variable and a notifier in timed parallel loops?

    The example code "Pass Data With Notifiers.vi" that came with LV 7.1 illustrates using notifiers with parallel loops.  Just looking at two of the loops, the one that generates the sine wave and the one for "User 1", you can change the timing of the two loops and you can change the condition of the "Ignore Previous" status on the "Wait on Notification".  I have a special case of this to consider, where I'm wondering if there's any reason not to use a local variable instead of the notifier:
    Set the delay on the generator portion (which contains the Send Notification) to something very short, say 5 ms.  Set the delay on the User 1 (which contains the Wait on Notification) to something relatively longer, say 200 ms.  Set the Wait on Notification to False.  Now you have a situation where the User 1 loop action is contingent only upon the loop delay time, since each time the loop timer runs the loop there will always be a value in the notifier.  In this case it seems to behave just like the case where you update a local variable in the fast loop and read it in the slow one.
    Is my understanding correct?  Would there be a performance difference between the two methods?  What do you prefer in this situation and why?
    Thanks,
    Hosehead

    Hi H.,
    I think your idea is to write to a Global Variable in the data-producer VI, and read it in the data-consumer VI(?)
    One reason this might be less efficient than using Notifiers is if you want to graph every new value in the "consumer" - or make sure the value read in the consumer has changed at least once since the last loop.
    > since each time the [consumer] loop timer runs the loop there will always be a value in the notifier...
    > Would there be a performance difference between the two methods? 
    If you don't use the Notification "event" to synchronize the producer and consumer, then to be sure the consumer gets a new vaue, you've made the producer loop faster - every 5 ms - a waste of cpu-cycles.  More often the situation is reversed, that is, there's a consumer that needs to see every single new value, and (without events) the consumer must loop faster than the producer (to catch every new value) - this is called polling and it wastes cpu-cycles.
    Just about anytime one's tempted to make a loop execute "fast" to check on some value (or to make sure there's a fresh value,) there's an opportunity to improve performance through synchronization with events (including notifiers, queues, occurrances, semaphores, and rendezvous')
    tbd
    Message Edited by tbd on 07-09-2006 03:51 AM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • Problems with message delay property

    Hello,
    I am enqueueing messages in an oracle queue and i am specifying a message property delay.
    So, when the message is enqueued it stays in the 'WAIT' state. However,
    expired the delay the message does not come to the READY state (as I thought it was supposed).
    For instance one message was enqueued on 10-OCT-08 01.40.42.687254000 PM,
    the delay timestamp from the queue table appears as 10-OCT-08 01.40.52.687254000 PM,
    but after the 10 seconds the message remains in the 'WAIT' state and it is not possible to dequeue the message.
    Any suggestions about the reason why the message state does not change would be kindly appreciatted.
    Thanks

    Hello,
    Changing the message state from WAITING to READY is the job of the qmon slave processes so if this is not happening it means they are either not running or they are expereiencing some kind of problem.
    What version of Oracle are you using? Is this a RAC environment?
    What does
    connect / as sysdba
    show parameter aq_tm_processes
    give you?
    Have you checked in the database alert.log for any error messages relating to the QMON processes.
    Thanks
    Peter

  • Loop Timing at alternating speeds

    I am having difficulty finding a solution to having i.e. controlling a lamp to remain OFF for longer periods than ON. There is Timer that allows no wait states if signal is False but it requires Front Panel action if the signal is True. Is there a VI or function that allows two different delays depending on the Boolean comparison done in the loop?

    Lamp ON/OFF timed loop
    (Beware of loop delay which might affect the actual time lapsed)
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    LampOnOffTimedLoop.vi ‏44 KB

  • DS 6.2 and password expiration

    Hello,
    I'm having problems enforcing password expiration with DSEE. We have two Solaris 10 DSEE 6.2 servers configured with multi-master replication. The clients are running Solaris 8 (117350-47 Jun 2007 kernel patch level), and are using pam_ldap authentication.
    Using either telnet (just as a test) or ssh to login, I don't receive warnings of password expiration, nor is the account locked after passwordExpirationTime is exceeded.
    As an example, I can still authenticate as a user with this passwordExpirationTime:
    passwordExpirationTime=20071123163438Z
    The following is our DSEE password policy:
    pwd-accept-hashed-pwd-enabled : off
    pwd-check-enabled : on
    pwd-compat-mode : DS6-mode
    pwd-expire-no-warning-enabled : on
    pwd-expire-warning-delay : 4w
    pwd-failure-count-interval : 10m
    pwd-grace-login-limit : disabled
    pwd-keep-last-auth-time-enabled : on
    pwd-lockout-duration : disabled
    pwd-lockout-enabled : on
    pwd-lockout-repl-priority-enabled : on
    pwd-max-age : 12w6d
    pwd-max-failure-count : 4
    pwd-max-history-count : 3
    pwd-min-age : 1w
    pwd-min-length : 6
    pwd-mod-gen-length : 6
    pwd-must-change-enabled : off
    pwd-root-dn-bypass-enabled : off
    pwd-safe-modify-enabled : off
    pwd-storage-scheme : SSHA
    pwd-strong-check-dictionary-path : /opt/SUNWdsee/ds6/plugins/words-english-big.txt
    pwd-strong-check-enabled : on
    pwd-strong-check-require-charset : any-three
    pwd-supported-storage-scheme : CRYPT
    pwd-supported-storage-scheme : SHA
    pwd-supported-storage-scheme : SSHA
    pwd-supported-storage-scheme : NS-MTA-MD5
    pwd-supported-storage-scheme : CLEAR
    pwd-user-change-enabled : on
    Am I missing something obvious in the DSEE password policy? Would any other information be helpful in troubleshooting, such as /etc/pam.conf, patch levels of other packages, etc.?
    Thanks!

    If your DS6 instance is in DS5-compatible-mode (see above references), passwordExpirationTime is not ignored; however, please note that modifying server operational attributes via protocol has never been supported.
    A supported way to force a user to change his or her password (without administratively resetting the password) would be to define a specialized password policy with a small max-age value (but maintaining the relationship pwdMinAge+pwdExpireWarning<pwdMaxAge), and use Roles/CoS to scope the policy to the user entry that requires a password change, but for which the password has not yet been changed. A value of pwdChangedTime in the past (or its absence from the entry) would indicate that the password had not yet been changed as requested. If the DS6 instance is in DS5-compatible-mode, you will need to enable grace logins via passwordWarning in the policy, while if the DS6 instance is in DS6-migration-mode or DS6-mode, you will also need to enable grace logins via pwdGraceAuthNLimit in the policy. Otherwise, the user cannot bind with an expired password.
    OpenDS includes a "must-change-by" feature in the password policy that simplifies configuring the specialized password policy, but I'm not aware of any plans to add this feature to DS6.

  • Error -2147417846 in Word_Get_Range.vi in Report Generation Toolkit RGTK

    Hi,
    in my large app there's a need to report lots of text results to various positions in the report. I've created a template with roughly 200 bookmarks. And I've got a wrapper around 'Append Report Text Str.vi' that stores an array of strings at an array of bookmarks. This one runs quite OK most of the time, especially since I've put a 200ms delay into the for loop that calls 'Append Report Text Str.vi' as often as required. But sometimes I got the error Error -2147417846, which is basically caused by Word_Get_Range.vi. Finally this states, that 'the application is busy' (my translation of a German error message). I assume that this means that MS Word 2k is busy.
    IS THERE ANYTHING I CAN DO?
    * Assuming that the whole RGTK is based on Active-X calls to MS Word 2k, is there any means to detect such situations when Word is busy?
    * How much calls can it accept?
    * Is there any delay that keeps those errors from arising?
    * Does this error mean that the last text was not written and the call must be repeated?
    I've got the impression that the whole RGTK is not that rock solid stable; Sometimes I got weird error messages within Word, for example that the hyphenation module for Italian Language could not be found. But I'Ve never ever used anyting with Italian, neither installed support for this nor do I speak Italian.
    Any Ideas?
    Greetings from Germany!
    Uwe

    Waterman,
    Watermann wrote:
    hi Uwe,
    sorry, but I found nothing relating to this error number.
    how is the behaviour when increasing the loop delay?
    is it possible to test the application with MS Word 2003?
    greets!
    At this time I have a delay of 250 ms inside the loop and it works most of the time when adding text strings only. It breaks however when I attempt to add a graph into the report and than have the loop with other text strings following quickly. In execution highlighting mode it works reliably.
    Ähm, maybe I could try getting a Word2003 license. But I'd prefer avoiding the hazzle of upgrading just for a try.
    I was a technical author for several projects and with several version of MS Word. My impression was that there have been just a very few bugs that had been fixed with newer versions. Almost ever they introduced new features with new bugs instead.
    So if you have a good reason that this would help, I'd try it.
    Thanx for your reply!
    Greetings from Germany!
    Uwe

  • How do I set up a track that my fade tool will work on?????

    I'm trying to do fades on my tacks using the fade tool.
    I open a new track, record something and go to tools and pick the fade tool.
    But it's not letting me do a fade at the start or the end of a track.
    I go to the inspector window and look at the Region Parameter Box.
    There I notice that there was not much info in the Region Parameter Box in the inspector window, just (loop, delay, follow tempo)
    On other tracks from the templets in logic 9 I could do a fade in and with the fade tool, but I notice the Region Parameter Box in the inspector window had a bunch more info like,
    (loop, delay, gain, fade in, curve, fade out, follow tempo)
    So how do I set up the track that has all that info in the inspector windows Region Parameter Box,
    then I could do my fades with my fade tool.
    Thanks for the help..........LEROX

    Flatten your Take Folder.
    Christian

  • How to change the transmissi​on rate of data flow in producer/ consumer pattern

    Hi All
    I am new to labview and trying to design a application to transfer image data in different rates, that means I can change the transfer rate in the transmission process. In fact,I refer to the the Queue Basic.vi to achieve this function by Changing the delay value of dequeue and enqueue.The program is divided into three parts:
    The first part is the sender in vc used to split and send image data.Data size is 226kb and each time we send a 1kb packet;
    The second is labview rate-change part,use producer/ consumer pattern and queue to transfer data;
    The third one is the receiver in vc,receive data in sequence and synthetic images.
    The entire transfer process is: image data was sent from the sender to producer loop through DLL, then enqueue--dequeue in consumer loop--DLL--receiver.The sleep time in vc sender is equal to the delay value in producer loop and this makes it look like the data generated as in the loop.
    Now this is where my dilemma is:
    When transferring data, if the producer loop and consumer loop delay value are equal(both 20ms), I can see image synthesis at a constant speed and no data lose; if I change the consumer loop delay value and make it greater than the producer delay(one is still 20ms and another is 50ms),that means receive in a lower rate and store data in queue. I can see Elements in Queue
    increase but the image data randomly lost, and the image synthesis speed is not reduced.
    My question is why image data loss and I can't see the image synthesis speed reduced when change the delay value in consumer loop?
    Do anyone know how to solve the problem? Are there any examples I can refer to? Any suggestions are greatly appreciated!
    Attachments:
    image1.JPG ‏56 KB

    thisoldman,
    I don't have '/usr/lib/modules/3.17.3-1-ARCH/build/Documentation/VGA-softcursor.txt' on my file system. Does it contain the info about changing the blinking speed?
    P.S. The other two links I found yet before starting this thread. I only found in them the recommendations about changing "the color and shape of the cursor and turning blinking on/off" (as I mentioned in the original question). Did I miss the info about the blinking speed?
    PPS: I found the vga-softcursor.txt here: https://www.kernel.org/doc/Documentatio … cursor.txt
    But that file doesn't tell about changing the blink rate either.
    Last edited by nbd (2014-11-23 20:55:41)

Maybe you are looking for

  • Process flow errors while deploying

    Hi all, The following error occurs while deploying a simple process: RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow Database Link CF.US.ORACLE.COM@WB_LK_F_IMP_BB. Please check that "EXECUTE ANY PROCEDURE" privileg

  • I don't know how to "un-install" my epson R300 printer?  Help?

    Hello, I know this isn't an actual iMovie question, but the only reason I bought this printer was to print on the DVDs that I make with iMovie, and iDVD. Anyway, I am having a litttle glitch right now, and I have been told that I should "un-install"

  • How to attach Documents in a Reply E-mail?

    As everyone know that We can upload or attach everything in the camera roll, We can attach other documents like .pdf , .doc etc.. with the help of some external application, but it support only attachment in the form of a new E-mail, But i want to at

  • HT204291 Apple TV sound problems

    I have a macbook pro and an apple tv. when I try to show a movie with my dvd player, i get a gray screen. the only way i can show a movie is if i hook my computer directly to the projector also, i tried renting a movie from itunes and an image showed

  • Anyone want a challenge

    It all started when I downloaded ACE Mega Codec Pack!! Ever since then I have not been able to access my precious iTunes, Getting this message: ITunes has encountered a problem and needs to close. We are sorry for the inconvenience. So here's what I'