Day Long Continuous DAQ Occasionally Getting a 200279 Error

So I'm pretty new to LabVIEW but I am attempting to create a continuous data aquistion VI that will record data average it to display and record a data point once every second. 
The problem is that no matter what I change I cannot avoid getting a
Error -200279 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp).vi
Possible reason(s):
Measurements: Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
Odd thing is that on some occasions, the VI can run for over a day and not return any error and sometimes the VI will only run for 8 hours and then stop due to the 200279 error. This is incredibly frustraiting. I'll attach my code; if anyone would want to look at it I'd be forever in your debt. 
Attachments:
BatteryTest.vi ‏100 KB

Just some thoughts.
1.  You do not need the seperate VI to configure the output buffer.  When you setup the timing, the Samples per Channel determines the buffer size when using Continuous Acquisition.  Set the Samples per Channel to the 30000.  Maybe the extra VI's effort is ignored for some reason and the buffer is really only 1000 samples (1 second's worth)?
2.  No need to use the property node to see how many samples are available.  Set the number of samples to read to -1 and it will read all of the available points.  Per the DAQmx Read VI help "If the task acquires samples continuously and you set this input to -1, this VI reads all the samples currently available in the buffer."
3.  If you want to grab data once every second, simply hard code the 1000 into the wait.
4.  Think about offloading the file write to another loop using a queue.  Look into the Producer-Consumer architecture for more details.  If the file write is taking a very long time, this could cause issues.  But 1 second is a long time, so this is likely not your problem.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • I did the recent update and now itunes no longer works and I get a MobileMe error in Outlook

    I can't get Itunes to work since the latest upgrade and I get an error in outlook about MobileMe.   I tried to reinstall Itunes but there is an error thaere and the program aborts.

    MobileMe was discontinued at the end of June 2012. The control panel should be removed if still present. See HT2992: MobileMe: Uninstalling the MobileMe Control Panel for Windows for details.
    tt2

  • I recently updated to Firefox 4. It worked that whole day, but next morning I get a crash error message and cannot get into Firefox. I've tried some suggestions on the site, but no help. Should I uninstall Firefox, then reinstall.

    I can't even get into Firefox to troubleshoot

    I don't know if this helps, but I'm still working on this problem and took a screen shot of my Console Message errors:
    What's happening here is opening the program, trying to save and it crashes. Then trying to open the program again and it crashing before it even opens.  Finally opening the program a third time and trying to save it using "save as" instead of "save" (which I found one forum recommending) and it crashing again. 

  • I keep getting the same error message: We could not complete your ITune store request an unknown error occurred 4001

    How do I make this error go away and allow ITunes Match Work?

    I purchased iTunes Match several days ago and I am getting the following error when I try to allow iTunes Match to run.  Please advise how to fix this:

  • How can I get Itunes to stop popping up on my desk top all day long

    How can I get Itunes to stop popping up on my desktop all day long without opening up the icon?

    https://discussions.apple.com/message/16589669#16589669

  • I've been getting this message all day long, WHY? "Oops! This link appears broken. DNS error occurred. Server cannot be found.

    I've been getting this message all day long, WHY?
    "Oops! This link appears broken.
    DNS error occurred. Server cannot be found.

    I've been getting this message all day long, WHY?
    "Oops! This link appears broken.
    DNS error occurred. Server cannot be found.

  • HT2204 Why is the app store not synced with icloud? Have so many logins and cannot login to one or the other sometimes. Wanted the latest updates to an app my friends already got and could not get the update all day long.

    Why is the app store not synced with icloud? Have so many logins and cannot login to one or the other sometimes. Wanted the latest updates to an app my friends already got and could not get the update all day long.

    In after 10 hours. Magic...

  • I am trying to convert PDF to word. With my PC  I get a message  "Error occurred while trying to access the service.   It worked fine for a long time.  Has been doing this for days now with all files i try to convert.

    I am trying to convert PDF to Word with Adobe Export PDF on my PC.  I get the message " error occurred while trying to access service".  Has worked fine in past.  Has been doing this for a few days now on all files i try to convert.    Any ideas?? Thanks

    Hi bert090909,
    Are you trying to convert your files from within Adobe Reader? If so, please make sure that you have the most current version by choosing Help > Check for Updates. Earlier versions of Reader could cause the specific error that you're reporting.
    Please let us know how it goes.
    Best,
    Sara

  • How can i say yes to automatic updates when they stop my wireless dlink to Virgin home broadband from getting on the internet and then i have to do a system restore to the day before the update to get it back to normal?!? Frustrated

    how can i say yes to automatic updates when they stop my wireless dlink to Virgin home broadband from getting on the internet and then i have to do a system restore to the day before the update to get it back to normal?!? Frustrated
    == This happened ==
    Not sure how often
    == automatic updates go on my computer, say if i click yes to update when shutting down

    You have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
    Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
    http://roaringapps.com/apps:table
    Far as your Safari problem do these things until it's resolved:
    1: Software Update fully under the Apple menu.
    2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
    https://www.mozilla.org/en-US/plugincheck/
    Flash install instructions/problem resolution here if you need it.
    How to install Flash, fix problems
    3: Install Safari again from Apple's web site
    https://www.apple.com/safari/
    4: Run through this list of fixes, stopping with #16 and report back before doing #17
    Step by Step to fix your Mac

  • I am working on a MacBook Pro (13-inch, Mid 2009) with boot camp running Windows 7 pro 64-bit.  Windows crashes quite often now-a-days and I need to get this fixed. I heard that updating boot camp can help.  Currently I am running Version 3.0.4 (322).

    I need to know which update(s) I can apply to help stabalize the system.

    Typing the body of the thread message in the title, huh? -)
    I am working on a MacBook Pro (13-inch, Mid 2009) with boot camp running Windows 7 pro 64-bit.  Windows crashes quite often now-a-days and I need to get this fixed. I heard that updating boot camp can help.  Currently I am running Version 3.0.4 (322).
    Only Apple could hamstring and tie Mac OS to Windows. There isn't any other than whether you can download the drivers into Windows (you can) but Apple puts a block on the installer setup even if your mac does not support it.
    Windows 7 needs at least Boot Camp 3.1 and 3.3 is what you should already have. And you are not getting security updates if you don't have at least 10.6.8 as was pointed out.  --- you arent using Software Update as you should. And you should backup and clone Mac (and Windows) as well.
    You need Mountain Lion to use Boot Camp 5.x which supports Windows 7 & 8 and 64-bit.
    I would upgrade to Lion if you can realizing that Rosetta and PowerPC are no longer supported though.
    Mac 101: Using Windows on your Mac via Boot Camp
    https://support.apple.com/kb/HT1461
    http://www.apple.com/support/bootcamp/
    Helpful Apple Support Resources (Forum Overview)
    Boot Camp Support 
    Boot Camp Manuals
    Boot Camp 5.0 Drivers
    http://support.apple.com/kb/DL1638
    Frequently asked question
    http://support.apple.com/kb/HT4818
    http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf
    http://manuals.info.apple.com/en/Boot_Camp_Install-Setup_10.6.pdf
    http://manuals.info.apple.com/en/Boot_Camp_Install-Setup_10.6.pdfcreate a Windows support software (drivers) CD or USB storage media
    http://support.apple.com/kb/HT4407
    The Boot Camp Assistant can burn Boot Camp software (drivers) to a DVD or copy it to a USB storage device, such as a flash drive or hard drive. These are the only media you can use to install Boot Camp software.
    https://support.apple.com/kb/HT4569
    http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.8.pdf
    Instructions for all features and settings.
    Boot Camp 4.0 FAQ Get answers to commonly asked Boot Camp questions.
    Windows 7 FAQ Answers to commonly asked Windows 7 questions.
    http://www.apple.com/support/bootcamp/
    Is there a download of the Boot Camp 5 Support Software if I'm not using OS X Mountain Lion v10.8.3?
    Yes, you can download the Boot Camp 5 Support Software here.
    http://support.apple.com/kb/DL1638
    How do I use the Boot Camp 5 Support Software I downloaded from the web page?
    The download file is a .zip file. Double click it to uncompress it.
    Double-click the Boot Camp disk image.
    Copy the Boot Camp and "$WinPEDriver$" folders to the root level of a USB flash drive or hard drive that is formatted with the FAT file system (see question below for steps on how to format).
    Install Windows, leaving the flash or hard drive attached to the USB port of your Mac.
    Installation of the drivers can take a few minutes. Don't interrupt the installation process. A completion dialog box will appear when everything is installed. Click Finish when the dialog appears.
    When your system restarts your Windows 8 installation is done.
    Note: If the flash drive or hard drive was not attached when you installed Windows and was inserted after restarting into Windows 8, double-click the Boot Camp folder, then locate and double click the "setup.exe" file to start the installation of the Boot Camp 5 Support Software.
    How do I format USB media to the FAT file system?
    Use Disk Utility to format a disk to use with a Windows computer. Here's how:
    Important: Formatting a disk erases all the files on it. Copy any files you want to save to another disk before formatting the disk.
    Open Disk Utility.
    Select the disk you want to format for use with Windows computers.
    Click Erase, and choose one of the following from the Format pop-up menu:
    If the size of the disk is 32 GB or less, choose MS-DOS (FAT).
    If the size of the disk is over 32 GB, choose ExFAT.
    Type a name for the disk. The maximum length is 11 characters.
    Click the Erase button and then click Erase again.
    Which versions of Windows are supported with Boot Camp 5?
    64-bit versions of Windows 8 and Windows 7 are supported using the Boot Camp 5 Support Software. If you need to use a 32-bit version, you need to use Boot Camp 4 Support Software, and you must use Windows 7. 32-bit versions of Windows 8 are not supported via Boot Camp. For a complete list of Windows OS support, click here.

  • TS1591 My iphone 4 randmonly started going into recoveery mode when i was trying to download ios 7.1, and now the apple logo will come one and then fade to black and continue this process. My iphone wont restore either and will get the 3194 error message.

    My iphone 4 randmonly started going into recoveery mode when i was trying to download ios 7.1, and now the apple logo will come one and then fade to black and continue this process. My iphone wont restore either and will get the 3194 error message.Help please!

    Hello chindeepchow,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694#3000
    Resolve communication issues
    Related errors: 17, 1004, 1013, 1638, 3014, 3194, 3000, 3002, 3004, 3013, 3014, 3015, 3194, or 3200. These alerts refer to gs.apple.com, say "There was a problem downloading the software," or say the "device isn't eligible for the requested build."
    Check the hosts file or TCP/IP filtering, which might cause communication issues between iTunes, ports, and servers.
    Have a nice day,
    Mario

  • Can no longer save edited photos. get messages - "Nothing was imported" "The file or folders selected to import did not contain supported file type.

    Can someone help. I use Photoshop Elements 13. I can no longer save edited photos. get messages - "Nothing was imported" "The file or folders selected to import did not contain supported file type. It started this a couple of weeks ago and I had a friend come fix it just 2 days ago. It took him several hours and I lost all tags I had on over 10,000 pictures. Now it has done it again. I'm so upset. I lost a lot of stuff. I don't want to keep bothering him with this. Please Help.

    How did you import the files to your computer?
    What model  number camera?

  • I carry my macbook around all day long at school while it's asleep. Am I damaging it?

    I've had a pro for a little over a month now. For the past couple weeks it's been lagging during startup and general activity of different applications (even safari). I only use it for school and music, nothing too crazy.
    I'm wondering, could it be that its slow performance is due to my carrying it around in my backpack all day long on sleep? Come to think of it, I rarely even shut it down. Am I overworking it? What should I be doing differently? Any other tips on keeping it running smoothly for as long as I can?
    Thanks!

    Dont do that.
    Mac laptops have been known to mysteriously turn on when in sleep mode and get extremely hot. It seems to happen more when the unit is carried around too--like in a backpack. sudden motion sensor.    
    As Jason, a member here notes:
    "On my old Santa Rosa MacBook Pro I definitely had a few incidents where the machine woke up in my bag as the lid had been falsely opened in transportation."
    http://support.apple.com/kb/HT1935
    Ive never experienced same because I would never pack around a laptop with a platter drive while it still has power running thru the system.
    See also:
    https://discussions.apple.com/thread/2412695?start=0&tstart=0
    http://www.macworld.com/article/1055527/nowakelid.html
    However people differ on this, many pack it around in sleep, but many also advise against same.
    Peace

  • Why does my hard drive run all day long when not in use

    my hard drive does not sleep  it continues to spin all day long

    As dwb stated, if the drive is FW then it will not sleep with Mavericks unless it has its own power chip.  I had to switch to USB for it to work.

  • All-day long activities in Calendar don't adjust height

    I have a lot of all-day long activities in Calendar, but it clearly wasn't designed for that because it only shows two or three of them and I have to keep scrolling all the time—which on the iphone and the ipad is a bit tricky. Is there some workaround to make the space auto-adjust in height? Thanks.

    I take it then you don't have a memory problem. Just to clarify, your events on the calendar are fine, it's just the display
    on the home screen where they disappear?
    Have you tried a battery pull to reset all options?  Pill the battery from the phone while it is ON, leave it out for about a
    minute and replace. Leave the system completly reboot 1-2 minutes and see if the problem continues. This is a common fix on these forums.
    Let us know!
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

Maybe you are looking for