Wait for Next Sample Clock error, or 'How do I put this VI on a diet'?

Hello!
In the attached VI I've been running since June, I have all the functionality I need.  No questions there at all, thanks to much time and help from this board!
My nagging problem is that any time I use the PC for other minor tasks other than Labview, it will display the following error:
209802 occurred at DAQmx Wait For Next Sample Clock.vi:1
A search earlier in the month indicated that it could have been a result of my old and outdated PC; I've since replaced it with a brand-new dell dimension 1100.  Celeron 2.53ghz with 1.00gb of ram.  Should be enough to service Labview and other minor tasks (automatic antivirus updating and also maintenance tasks).  However, any time any other program opens or even if the screen is scrolled around on Labview quickly, I get that same error.
Resource usage when idle, with nothing but this VI running is 5-10%, all labview.  Upon scrolling the VI, it quickly jumps to the 58-60% and above mark and soon throws that error.
I know that there's a lot of code here that can be cleaner--I know that even though it's functioning correctly, there could be a less resource-hogging way to go about it.  Can anyone give me any suggestions on how to make this VI a little 'lighter'?
Thanks so much in advance,
Ralph
Still confused after 8 years.
Attachments:
Currently Running 063006.vi ‏899 KB

Hi Ralph,
The wait.vi waits until the amount of time has passed. While the wait on next ms.vi uses some kind of quotient and remainder on the computer time until the remainder passed zero.
In this way you can synchronize 2 loops, and somehow it is less time-consuming. The only difference you will see is in the first run!
There you see a smaller amount of time:
Message Edited by TonP on 10-04-2006 04:21 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Attachments:
Example_BD.png ‏2 KB

Similar Messages

  • My firefox quite often crashes ,with this message"FIREFOX IS NOT RESPONDING" IF YOU CLOSE THE PROGAM YOU MIGHT LOSE INFORMATION. THESE APPEAR UNDERNEATH CLOSE THE PROGAM WAIT FOR THE PROGAM TO RESET, SO HOW DO I FIX THIS

    My firefox quite often crashes ,with this message
    "FIREFOX IS NOT RESPONDING"
    IF YOU CLOSE THE PROGAM YOU MIGHT LOSE INFORMATION.
    THESE APPEAR UNDERNEATH >CLOSE THE PROGAM > WAIT FOR THE PROGAM TO RESET, SO HOW DO I FIX THIS

    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * http://kb.mozillazine.org/Firefox_hangs

  • Hostscan is waiting for next scan

    Hi gurus
     Everytime I start annyconnect it goes through all the steps but hangs on 
    " hostscan is waiting for next scan" and do nothing
    Thanks a bunch gurus

    Having this problem too recently with one of company machines. It gets stuck on the hostscan phase and just keeps looping with that same error " hostscan is waiting for next scan". If I disable the hostscan on the ASA for that specific VPN profile it works fine. We have hundreds of other machines that work fine, so this is limited issue being experienced on one machine so far.
    Would appreciate it if anyone has found a solution for this. AnyConnect Version 3.1.04072, hostscan version 3.104072, Windows 7
    Thanks

  • Automatically upgrade any superseded versions of this application not auto installing - Status always waiting for next maintenance schedule

    Hello,
    I'm trying to deploy an application to a user group with the option checked for "Automatically upgrade any superseded versions of this application" but it never auto installs.
    - The application is set to install to system whether the user is logged on or off. 
    - We do have user affinity, therefore the user does have a one or more primary devices setup.  
    - If I run the install manually, it will superseded and install the new application and uninstall the old applications.
    - The estimated installtion time minutes is set to 0
    - The maxmimum allowed run time is set to 120 minutes.
    We're on version SCCM 2012 SP1.
    My assumption of how it should work
    If the user is logged in or NOT and it's during the maintenance window, it should auto install the application. Maybe I'm wrong.
    Here's the scenario.
    User JohnDoe has application Viewer 1.0 installed on his machine.  He installed this app via the SCCM application catalog.   We now need to deploy Viewer 2.0 of this application.   I want to ensure when it's deployed it replaces Viewer 1.0 hence
    the reason to check the "auto upgrade.."check box.   
    Here's what happens. In software center, it will pre-downlaod the software and then set the status to "Waiting for next maintenance schedule".  The problem is that the status stays like this forever.   We do have maintenance windows set
    on the device collection that JohnDoe's primary device is part of.  Here are our maintenance windows.
    - Daily - 9PM to 5AM = 8 hours
    - Weekly - Saturday - 12:00AM to 12:00 = 24 hours
    - Weekly - Sunday - 12:00AM to 12:00 = 24 hours
    Coordinated UTC is not checked.
    The business hours in software center are set to 5am to 10pm.
    One would assume that it would auto install during the night since we have a big maintenance windows. I checked the ServiceWindowmanager.log and it does seem to show the various maitnenance windows.
    Here's what I've tried
    - If I make the deployment required, it will install right away regarless of maintenance windows.  However, i don't want to use this option because if the user logs in to other machine (e.g. boardroom computer), it will auto install this software.  
    - If JohnDoe clicks install in Software center or application catalog, it works.  There's nothing wrong with the packages.  The issue seems to be related with the maintenance windows. 
    - If I disable the maintenance windows, then it seems to work but only when I'm logged in.  It still does not work if I'm logged out.  It only kicks off the installation when I login if it's not during the business hour set in software center.  
     We need the maintenance windows since we don't want windows patching to occur during the day.
    - I searched and ran the report to ensure there's not another maintenance windows setup that would prevent this from installing.
    Our current workaround
    To ensure users are using the latest version, we deploy the application required for a couple of days, then delete that deployment once we reach a high 90%.  The problem with that is if some computers are turned off, they would be using the older version
    and it will never get upgraded unless the user installs it manually.
    Has anyone encountered this?  Any other log files I should look at? Anything else I should verify ?  I know in SCCM 2012 R2, you can set the maintenance window to only apply this schedule to software update (patching) but that option doesn't seem
    to be available in SCCM 2012 SP1.
    Any help, suggestiong, I will take.  Thanks.

    - If I make the deployment required, it will install right away regarless of maintenance windows.  However, i don't want to use this option because if the user logs in to other machine (e.g. boardroom computer), it will auto install this software. 
    Re-check your deployment, specially the user experience:
    If you've checked the box next to "Software installation", it will install after the deadline has passed and ignores maintenance windows. Change the deployment to required and uncheck that box and the software should be installed according to your
    maintenance windows.

  • TS4268 I'm trying to activate my iMessage & FaceTime with an email on my iPhone 4 , but it keeps saying "waiting for activation.." . So how do I activate it so it can work ?

    I'm trying to activate my iMessage & FaceTime with an email on my iPhone 4 , but it keeps saying “waiting for activation..” . So how do I activate it so it can work ?

    Yes, I know. But at one point in activating FaceTime or iMessage you will need to be able to send a text message. If you can't, there will be no activation.
    Check your device settings
    Make sure that you’re connected to a cellular data or Wi-Fi network. If you're using an iPhone, you'll need SMS messaging to activate your phone number with iMessage and FaceTime. Depending on your carrier, you might be charged for this SMS.
    copied from If you get an error when trying to activate iMessage or FaceTime - Apple Support

  • Can I use a substitute for the Sample Clock?

    I have three different analog inputs coming from one device (PCI-6221).  Two inputs are running at the same sample rate while the third needs a faster sample rate and a trigger.  I have these seperated as two seperate tasks but my problem is they both use the sample clock.  Can I use a substitute for the sample clock on the third channel?
    I am running LabVIEW 8.2 on Windows XP.
    Thanks in advance for your help.
    Ron Deavers, CLD

    Hi programmindragon,
    I understand you are trying to
    configure your PCI-6221 to sample on multiple channels, while having
    different rates and triggers for the channels. Unfortunately, you can
    only configure one analog input task to run at once and all the channels in
    the task must share the same configurations, including the sample clock
    and trigger. This is due to the fact that all the channels are
    multiplexed to a single amplifier and ADC on the device. Thus, you will
    not be able to configure the two inputs at one rate and use a different
    clock rate and trigger for the third input. Is it possible to sample at the
    maximum rate on all channels and decimate the data that you don't need on the certain
    channels, as well as share the same type of triggering? Hopefully you will be able to run your application with the same configuration across multiple channels, otherwise you may need multiple DAQ devices. Please let me know if you have any further questions related to this issue.
    Regards,
    Daniel S.
    National Instruments

  • LV PDA 8 wait for ms and wait for next N ms multiple costs extrem performance.

    Dear LV PDA users.
    There is another bug using the PDA toolkit.
    The usage of wait for ms and wait for next N ms multiple costs me 200ms while the input is 1ms.
    I have tried it without the wait functions and the looptiming was 0..1ms.
    One possible workaround is to use timout events with while loops.
    This works fine without delays.
    With kind regards
    Martin Kunze
    KDI Digital Instrumentation.com
    e-mail: [email protected]
    Tel: +49 (0)441 9490852

    This issue has already been reported to the R&D group at NI (at least that is what I'm told) ...  refer to this thread ... Here

  • I can't finish the installation of Itunes for windows. at the end of the installation I get an error. How can I install this programm?

    I can't finish the installation of Itunes for windows. at the end of the installation I get an error. How can I install this programm?

    See if the user tip: https://discussions.apple.com/docs/DOC-6562 helps out with your problems.

  • SQL 2012 Transactional Replication Publisher is also AG Primary, AG fine, but Replication status continuously 'waiting for next Log backup'

    Hi,
    I have a SQL 2012 instance that hosts 3 databases that are publishers in (push) transactional replication to subscribers in other domains and are also primary in an Availability Group to other instances in the same domain.  The AG is healty (synchronized),
    and replication is ok for 2 databases, but the third continuously shows the Publisher to Distributor history status as 'Replicated transactions are waiting for next Log backup or for mirroring to catch up.'
    I have weekly full, nightly differential, and hourly log.  Those are running and I've tested restoring the publisher db from them into a test instance.  The option for sync_with_backup is 0.  I generated a new snapshot, no change (haven't
    reinitialized, that will be last possible option as this is production).  When the log backups run, status will briefly change to 'Approximately (x) log records have been scanned in pass # ..., 0 of which were marked for replication' and some data
    does replicate, but then status immediately changes back to the message about waiting for log backup.   We are only replicating tables (no views, sp's, etc).  All subscribers and AG secondaries are SQL 2012.  My db is less than 200
    GB data. 
    The jobs are continuously running and data updates are occurring on the primary.  The distribution database is on the same instance as the publishers.  Anyone have any ideas what could be happening? 
    Thanks greatly!

    Update - I resolved this. 
    We had added a new asynchronous instance to the AG, but hadn't added the databases on the new node to the AG yet.  Conceptually it seems that adding the instance must have marked the logs and interferred with transactional replication on the
    primary.  Once I added the databases to the AG on the secondary, then the replication status cleared on the primary and has remained cleared.  It is odd though that it only impacted one of the databases in the AG. 
    cheers. 

  • While waiting for student credentials to be accepted, how do I download Lightroom 4?

    While waiting for student credentials to be accedped, how do I download Lightroom 4?  My confirmation email says to go ahead and use it for the time being, but nothing on the My Order Page allows me to download.  VERY FRUSTRATING!!!!

    Download the Try/Trial version from www.adobe.com a few clicks into the Products menu. 
    Or download LR 4.1 RC from Adobe Labs:  http://labs.adobe.com/ which expires June 30th.

  • On my iPad 2 I can nolonger view maps.  It says there are JavaScript errors.  How can I fix this problem?

    On my iPad 2 I can nolonger view maps.  It says there are JavaScript errors.  How can I fix this problem?

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • I can't log in to game centre but I can log into iTunes. I recently changed my password. I checked the troubleshooter and am getting the message regarding server error but how do I fix this? It doesn't specify this in that article. I don't have firewalls

    I can't log in to game centre but I can log into iTunes. I recently changed my password. I checked the troubleshooter and am getting the message regarding server error but how do I fix this? It doesn't specify this in that article. I don't have firewalls

    Hello sadiepix,
    The following article details several things that can be done to quell iTunes' constant need for authorization.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    Cheers,
    Allen

  • The itunes stores said we could not complete your request an unknown error occured how do i fix this?

    The itunes stores said we could not complete your request an unknown error occured how do i fix this?

    Hi The99reddragon,
    Thanks for visiting Apple Support Communities.
    You may have been affected by this system issue that occured:
    Multiple Services - 10:23 AM - 12:54 PM - Some users were affected
    Users may have been unable to make purchases from the App Store, iTunes Store, Mac App Store, or iBookstore. Users may also have been unable to access iTunes in the Cloud, iTunes Match, or restore purchases from an iCloud backup.
    From Apple Services, Stores, and iCloud.
    If you're still not able to complete your iTunes store purchase or download, see this article for some troubleshooting steps that can help:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Best,
    Jeremy

  • Hello, I come to update the iTunes software it shows me an error 20 How do I solve this After I was once an error 13 appears. And that's just Mac Air. I would like to get an answer because it annoys me that it happens ...!  Nimrod

    Hello,
    I come to update the iTunes software it shows me an error 20 How do I solve this After I was once an error 13 appears.
    And that's just Mac Air. I would like to get an answer because it annoys me that it happens ...!
    Nimrod

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

Maybe you are looking for

  • How to handle iTunes Match with multiple libraries (one account, 5 family members)?

    How would this work, in the situation below ... Everyone has their own iCloud account (for their own syncing purposes). But we (family) ALL share the same iTunes account (for purchasing). How will this work, since we all have our own iTunes libraries

  • Open item clearing in FI-CA

    Hi, The requieremnts is to create one clearing document per FI-CAX document while doing manual clearing in transaction FP06. As there is restriction is that not more than 9999 items can't be cleared in a single go, so split the documents in smaller g

  • How do I transfer iPod touch and iPad to a new computer?

    I have both an iPod touch 3G 64GB (iPhone OS 3.1.1) and an iPad 32GB WiFi (iOS 3.2). I need to transfer them to a new computer (Windows 7 unfortunately, because I can't afford to replace all my software and the computer yet) I can I do that and not l

  • Loading Last three days of delta records in Production Server

    Hi I have a Process Chain in BI-Production Server which runs dailiy  and loads the delta records dailiy  . I have 'Custom DataSource' which loads the data from QM-Tables . My Process Chain is failied due to the "Caller 09 Error for the datasource". S

  • How can I get my ipad out of lost mode

    It's actually my daughter's iPad. She got it for Christmas and I took it away from her a few months ago for punishment. She got it back today, but later revealed that her mom put it in lost mode (a few months ago) because she thought it was stolen. A