LabVIEW pauses during acquisition

To avoid burying the lead, I'm going to state the problem I'm having straight off. The program I'm written pauses exactly every 10 seconds while running, always on a time where the seconds are around 3.6 (see below, as low as 3.4 and as high as 3.8). the pause is very short, easy to miss. I only noticed it because we recorded over the pause a few times and the data columns got swapped. 
The timing of the pause appears to be independant of the sample rate. I've gone as high as 200k and was able to repeat it as low as 50k. Below 50k I cannot reproduce the error reliably. Once the error does occur it happens exactly every 10 seconds (down to the millisecond). For example, on one run I get the error at 11:06:13.681, it will occur again at 11:06:23.681, at xxxx:33.681, xxxx:43.681, etc...
Program explanation: Currently the software acquires data from some 9 sensors at 100 kHz, 3 sensors at 1000 Hz, controls 4 relays, and outputs a TTL signal on demand. Initially the software just monitors the sensors and writes the data to a plot. When I hit the "fire" button the software shuts of the plots and records the data to several TTL files, one for each rate. I had some problems early on with errors when trying to plot data at the same time as I was recording it. In my research on this timing issue I believe it is being caused by having the "write to measurement file" in the while loop. Not really certain of how to pull them out and stream the data to the file yet, but that's next on my list. Anyway, the program still has some evolving to do as the test program moves forward. 
Initially it was written using the "DAQ assistants." Again, in my research I learned that I really want to use the DAQmx functionality. I went ahead and swapped most of them over to DAQmx. As of this writing the things that are active while I'm not recording (have not hit the fire button) do not have any DAQ assistants. I'll be changing the assistants under the lower case structure to DAQmx in the near future, I'm going to figure out how to move it outside the while loop first while I know it works.
Does the software work at this point? Yes, it is currently being used and recording data in a satisfactory manner. However, I know that I have to move forward with it and create additional functionality, possibly record at higher speeds, so I want to resolve these bugs.
Possible causes:
1) Buffer overun. Perhaps increasing the buffer size will solve the problem.
2) PC Memory. I know win7 is a memory hog. The laptop only has 6 GB of ram, all it has on it is labview and office. 
3) The DAQ assistants under the case structure are causing problems? Could it also be that I originally did this with DAQ assistants and swapped them to DAQmx with the right-click "Convert to DAQmx?"
4) I'm plotting an excessive number of points on the chart and that's causing the issue, maybe a redraw issue? 
I'm using a cDAQ-9188 with 3 9222, a 9221, two 9481s, and a 9402. and running LabVIEW on an Inspiron N5110 with a core I7 and 6 GB of ram and 64 bit windows 7.
Attachments:
DAQ_R6.zip ‏211 KB

Thanks for the response. You make a number of suggestions that I will incorporate into my next revisions. Let me add a bit of detail that I didn't think about on the first post.
The reason I don't append to the file is because I only write one file for each event. LabVIEW is stopped completely between each event while the hardware is reset/moved and a new filename consistent with the test setup naming scheme is input. 
Channels swapping, sorry, I should have explained that. Each of the 9 high speed sensors goes into its own column in the resulting file. On occasion the columns get swapped around, for example, column 7 might be in the column 5 position, with 5 pushed to 6, 6 pushed to 7, etc... The way the sensors are arranged it would be physically impossible for the measurements to take place in the recorded order. We duplicated the same setup multiple times to verify the problem and duplicate the error. That's when I noticed that pause.
Good tip on the producer/consumer pattern, that is the way I will proceed. However, I believe the pause bug is independant of the file access and creation. When I just run the VI without hitting "fire" the files are not created. They are only created when I hit the fire button and the case structure turns from false to true. In fact, I went ahead and deleted all the content in the "true" field of that case structure. This took out 100% of the DAQ assistants and left me with only the DAQmx components (attached). The pause bug was still present.
I don't know if I have access to the 2012/2013 project templates. I'll check into that. I'm not sure that I want to do continuous logging though, the event I'm measuring is only about 25 ms and it happens sometime between 0 and 2 seconds after I initiate the firing sequence, I have to record about 2 seconds of data to be sure to get it. Once the event occurs the hardware has to be reset and I like to stop the software as well so I get a new filename associated with the test naming scheme.
What about that DAQmx write on the right side, it controls the 9481 relays. Is it sending data to the relays on every iteration of the while loop? Could that be a component of the problem?
Again, thank you for the response. Your suggestions give me a number of directions to look in for my future iterations. 
Attachments:
DAQ_R6_1-2-2014 - no DAQassistant.vi ‏61 KB

Similar Messages

  • Front Row pauses during DVD play

    I've played at least 5 (3 of which were brand new) different DVD's in Front Row that randomly pause during play. After a few seconds the movie continues to play. I took the computer into the store to have the optical drive replaced, but it keeps happening. I tried just using DVD player and the same thing happens. Since the drive has been replaced, now I get "skipping over damaged area" when it pauses (only in DVD player). These are BRAND NEW dvds, there's no way they can be damaged already. Any ideas, suggestions, anything???

    That's interesting. Since it doesn't seem to be a hardware problem, you might use the Accounts System Preferences to create a brand new user. Log out and log in as the new user. Does the DVD Player application give you the same trouble when logged in as the new user? If not, then a preference or setting your original user has must be interfering. Or some kind of preference file corruption. If the new user does have the same trouble, it might be time to run the Disk Utility and make sure your permissions are repaired and the disk is repaired. If that still doesn't help, it may be time to do an "archive and install" of Mac OS X to get a good copy of the DVD Player application back...
    -Doug

  • Has anyone had this issue. I created my song from itunes to garage band, took my iphotos to create a slide show and when I burned to idvd there are several pauses during playback?

    Has anyone had this issue. I created my song from itunes to garage band, took my iphotos to create a slide show and when I burned to idvd there are several pauses during playback?

    Hi
    SlideShow in iDVD has a 99 photo limit - more than this and all sorts of error occures.
    One can have more than one SlideShow on a DVD = X times 99 photos.
    or assemble SlideShows in a movie editor (no limit at least not under 650 photos)
    (only limit is Time in iDVD (movie time + MENU time --- 60 min or 120 min on SL-DVD and about twice on DL.-DVD )
    I use
    • iMovie up to HD6 - or -
    • FinalCut any version
    As they will give a better quality than iMovie'08 or 09 or 11 can do.
    Yours Bengt W

  • Can we pause during a video recording?

    I had wonder that if that's possible for any apple device that we could pause during our recording usually like how the samsung devices, is there gonna be an update for Apple for that?

    Some FTP clients will allow you to do this with files you are uploading to the internet, and some have ways to copy files to and from your local hard drive, so in theory, I guess it's possible this could be done, assuming you want to start a file copy, stop or suspend it, then re-start it again later.
    Try using Forklift.
    http://www.binarynights.com/forklift

  • Comment out some sections of Labview programs during debuging

    In other programming such as VC or VB, we can always comment out some sections of our program so that the commented section are not executed during debuging. Is there any way to comment out some sections of Labview program during debugging?

    YanWong wrote:
    You can use a case structure to surround the section of the program you do not want to execute and then wire a false constant into the input so the case will never execute.
    Also remember that doing this will only work if the code you "commenting" out must be executable. A broken run arrow will still be there after you put it in the Case Structure. If you are trying to comment out some broken code, you're out of luck, at least now.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Advice on Apple TV Pausing During Streaming (Apple Remote App too)

    With all the talk and excitement of the new Apple TV, I'm not sure if this problem applies. I'm not sure if the new Apple TV streams movies like the old one did.
    Regardless, I have had some difficulty with my 40GB Apple TV that I finally figured out after months. I'll describe my network, describe the problem and solution, and why that solution works.
    1. My network.
    I have:
    an iMac connected wirelessly to an Airport Extreme
    a Western Digital hard drive connected via ethernet to my Extreme. My movie library is here
    an newer airport express (N) connected to my stereo on the main floor
    an older airport express (G) connected in the basement with my XBOX connected to it via ethernet
    an Apple TV in the basement.
    2. The problem
    When I'm streaming movies, it often works just fine. However, sometimes, during a movie, the playback pauses as if Apple TV needs to re-cache the movie or something. It will pause for about 10 seconds or so then keep playing. When it starts to play again, the movie jumps forward the 10 seconds to the current playing point. This then works for anywhere from another 30 seconds to several minutes. When this pausing occurs, if you click the Apple remote to bring up the status bar, you can see the timeline of the movie continue to move along. Then, other times, the whole thing will somehow cure itself and start working again.
    Unrelated but later found to be related problem with Apple remote on iPod touch
    Sometimes, trying to connect to my iTunes library, it couldn't connect and I'd get the message that my firewall is getting in the way. You'll see as it turns out, this isn't the problem.
    How I found the solution
    When this pausing occured, I would unplug the Airport Express in the basement. This is the one the XBOX is connected to. After a couple of seconds, I'd plug it back in. On the TV screen, it would revert back to the movie list and show that there were no movies to play. Then, after a couple of seconds, my movie list would reappear. I'd restart my movie and it would work just fine.
    Here's what was happening
    Somehow, I configured my Airport Express router in the basement to be an extention of the network The problem is that the Express in the basement was G speed and not N speed (I think that was the problem). Sometimes, Apple TV would connect to the Express router in the basement rather than my Airport Extreme router upstairs. When this happened, the pausing during streaming would occur. This also makes sense now that the movie list would briefly disappear when I'd unplug my Airport Express in the basement. The connection would be lost but then a few seconds later, Apple TV would find Airport Extreme and reconnect. Then it would work perfectly.
    I also noticed two separate networks coming up when I did a network scan. I would fire up my WIndows laptop and do a network search. I would get two separate instances of 'Mynet'. One would be N speed and the other would be G speed. This now also makes sense since one of them was my Express and the other was my Extreme.
    The solution
    I did two things. I swapped the two Express routers so I had the N speed router in the basement connected to the XBOX. I also configured the network so it was 'all the same network'. Now, when I do a network scan on my Windows laptop, I no longer get the two separate instances of 'Mynet' coming up.
    Since then, I have never had a problem streaming movies nor have I had a problem with my Apple Remote app on my iPod Touch.

    I'm having similar problem.
    My set up:
    iTunes running on my MacBook C2D, 2GB RAM
    Movie contents are in an external USB2.0 HDD (7200rpm) attached to Airport Extreme (802.11n)
    Typical movie content is mp4 file with 1.8mbps bitrate.
    When my MB is completely idling state, ATV gets data w/o pausing.
    When MB is doing some task (web browsing, etc), no problem.
    When iTunes starts downloading some video podcasts (to MB, not syncing to ATV).... the movie streamed to ATV gets paused and gets into the same state as gjbonnington described.
    Any idea how to solve??
    MB C2D (Black, 2GB RAM) Mac OS X (10.4.9)
    Powerbook G4 15 (1.33GHz, Combo Drive) Mac OS X (10.4.2)
    Powerbook G4 15 (1.33GHz, Combo Drive)   Mac OS X (10.4.2)  

  • I-tune pauses during play

    Whenever I play a song or a pod cast I-tunes will pause during play for about 30 seconds or so and then pick up where it left off. How can I stop this from happening?

    do you have iTunes running off an external hard drive by any chance? i had this problem on my powerbook because i had too many programs running at the same time and not enough RAM.

  • Is there any way to get my podcasts to pause during notifications or turn by turn directions?

    i get frustrated when I'm using the turn by turn directions and listening to a podcast and the podcast continues to play. Is there any way to set the app to pause during notifications?

    iPad Photo Recovery: How to Recover Deleted Photos
    http://www.iskysoft.com/iphone-data-recovery-mac/ipad-photo-recovery.html
    How to Restore Lost or Deleted Files from iPad
    http://www.iphone-ipad-recovery.com/recover-ipad-mini-files.html
    How to Recover Deleted Files from iPad
    http://www.kvisoft.com/tutorials/recover-deleted-files-from-ipad.html
    How to Recover Photos from iPad
    http://www.ipubsoft.com/idevice-tips/recover-deleted-photos-on-ipad-mini.html
    iSkysoft Free iPhone Data Recovery
    http://www.iskysoft.com/iphone-data-recovery/
    Recover iPhone/iPad/iPod touch lost data, Free.
    Free recover iPhone/iPad/iPod touch lost contacts, photos, videos, notes, call logs and more
    Recover data directly from iPhone or from iTunes backup
    Preview and recover lost iOS data with original quality
    Wondershare Dr.Fone for iOS
    http://www.wondershare.net/data-recovery/iphone-data-recovery.html?gclid=CJT7i9e 6gb4CFcvm7AodbUEAJQ
    Recover contacts, messages, photos, videos, notes, call history, calendars, voicemail, voice memos, reminders, bookmarks and other documents.
    iPad Data Recovery Software (PC & Mac)
    http://www.anysoftwaretools.com/ipad-data-recovery.html
    Jihosoft Mobile Recovery for iOS
    http://www.fonerecovery.com/iphone-data-recovery.html
     Cheers, Tom

  • Random pauses during songs.

    I've had my nano since november 2005, about a month ago while I was listening to it my ipod suddenly paused for no reason(I dont recall jerking on the headphone wire or jack at all).
    Ever since then the ipod keeps randomly pausing during songs, the odd thing is it doesn't only do it when I wiggle the headphone jack, it does it sometimes even when its sitting flat on my sofa without anything at all touching it and alot of slack in the headphone wire. Also the ipod does it even when the hold button is on as well so it isnt the play/pause button.
    I tried sending it to apple but under the reasons for replacing the nano there was no option for damaged headphone jacks so I chose "damaged dock port" since it is very close to the headphone jack, and I also wrote in the description that the headphone jack is broken. Apple sent back the same nano saying they couldn't find any problem with it so I'm out of ideas.
    Oh and yes I've tried resetting it and everything.

    hmm another question, when i try to open another service request to send my ipod in again, it says it cant because my ipod already has a service request open, even though ive already gotten my ipod back since last week when i sent it in...any idea how long it will take till i can send it in again?

  • Intermittent pauses during Playback with Captivate 6

    I am running Adobe Captivate 6.0.0.199... "Non-Quiz" slides intermittently pause during playback, but, only the animated text... the audio continues. This occurs regardless of a variety of export configurations I have tried. Ideas?

    Hello and welcome,
    Please upgrade ASAP to 6.0.1.240. The version you are using has a lot of bugs, that were fixed with this patch released in October 2012 (not a typo - more than one year ago). Go to Help, Updates.
    Maybe you problem will be solved with that update,
    Lilybiri

  • Weird pauses during download/upload visible on speedtest

    Hey Everyone. I'm seeing a weird thing happening when running a speed test over at Speakeasy.net (http://www.speakeasy.net/speedtest/
    Every time I do it I'm seeing several weird pauses during the download & upload. The ball moving across the page stops for a beat and then picks up again. I do not see this happen on my powerbook (wireless) or my pc.
    any ideas whats going on? I have a d-link DI-634M router (but it did the same with an old router) and I'm on a high speed cable connection. Also. I'm running 10.4.8
    any help would be appreciated.

    Hmm, that one account, that helps!
    Is the Interface you're connecting with at the top of the list in Network Port Configurations?
    If it is, then try trashing...
    /Users/nnnn/Library/Preferences/com.apple.internetconnect.plist
    /Library/Preferences/SystemConfiguration/preferences.plist
    /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
    /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
    /Library/Preferences/com.apple.sharing.firewall.plist
    /Library/Preferences/com.apple.networkConfig.plist

  • Video Pauses During Transitions

    Can Keynote seamlessly transition in and out of video clips without pausing the clip during the transition? I'm trying to seamlessly disssolve between slides with video clips, but the video pauses during the transition. Is this a limitation in Keynote? Is there a workaround?

    I have a similar question. Can I move content on and off the slide with video looping in the background? The content that would be moving on and off the video background would be titles, photos, and other video clips about a minute in length. And if I'm not asking too much of Keynote, do all this with no hang ups in the background video. The background video was created in Motion and is just moving text growing and shrinking with motion across the screen.

  • Camcorder pauses during playback.

    Both my canon video camcorders ( XH G1 and XL H1 ) pauses during playback or capture. Both are a few years old. The tapes I am using are new professtional Quality. Any Ideas?
    While recording everything is fine.

    Mike,
    It will pause after only a few frames. It will then play for a couple of seconds then pauses, this keeps repeating.
    I just noticed this accelerated play then pause a few days ago.
    Months ago it did this but not nearly as frequently. I blamed this early pausing on the tapes I bought, since I was in need of fresh tapes on a job (my pro tapes took a hit and were broken) so I had to buy local Wal Mart tapes to finish the job.
    Luckily I was able to pull enough footage off these to finish the job.
    Since my first post I researched some and read that people were hitting the bottom of their camcorders during play back and this would resolve the pausing. I am not a fan of this solution. I also read in there that someone thought that the rollers or wheels in the camcorder are lose or worn.
    Does the record and playback use the same drive system? If so this should not be the problem since when recording the time code keeps advancing without pausing.
    Bill

  • PC reboots during Labview controlled data acquisition

    Hi,
    I'm using LabView to control the acquisition of a large number of gamma spectra and whenever the system gets to the ~700th data acquisition the PC reboots itself. There is no sign that the Labview software has crashed, the PC just goes dead and reboots. This problem only happens when using LabView. After a data acquisition a data file is saved to the hard drive, the files are only 12KB in size and I have 1GB of RAM, so I don't think it's a memory problem.
    Would appreciate any help!
    Thanks

    hi there
    Are there any entries in the system events list (assuming MS Win) or in some application logs?
    You said "This problem only happens when using LabView". Does this mean you can acquire data without problems when using another language than LabVIEW? if possible I'd try to create a basic app in some other language to check if the problems depend on the hardware or on the application.
    Can you provide some information about your platform and post some code (pls. don't forget required additional files lile driver DLLs etc.)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How can i write max and min data online during acquisition

    Hello,
    I am not keen with programming and your help will be greatly appreciated.
    I make temperature acquisition from an IR camera and I record online 38 different spots at a frequency of 10 samples/min.
    I also record two temperatures from thermocouples at the same sampling rate.
    I would like to make the acquisition during 5 sec every 20 sec and extract the max and min temperature from the thermocouples and write these values in a text file like show below :
    Temp_max 5 sec 22.1
    Temp_min 5 sec 2.1
    Temp_max 10 sec 42.1
    Temp_min 10 sec 4.1
    Temp_max 15 sec 82.1
    Temp_min 15 sec 6.1
    I also would like to make the same with two or three different spots of the IR camera. I think that if I have a good solution for the thermocouple, I can make it for the camera.
    I use LabView 8.2 with NIDaqmx acquisition.
    Thank you in advance

    Hello Evrem,
    Thank you for your advice. In fact, I have already attended to the training course you mentioned. I should think about going to the module Basic II. I do not have problem to connect/pilot various type of instruments but I am not very efficient with loop and arrays !
    I am fine with the data acquisition and the timing and I can sort data during 5 sec with "Array max & min". Then, I can display all data. What I have problem to do is to extract the max & min from the array, keep these 2 values for being writtten in a file at the end of my loop and start again during the next 5-sec cycle. At present, I only have the last max & min results from the last acquisition !
    Any example of how recording max & min online during 5-sec cycle acquisition will be welcome.
    Best regards,
    Labdummy

Maybe you are looking for