Why is the DAQmx Read VI so slow?

Hello everybody.
I'm using Labview 8.5.1. and NI DAQmx 8.6 and I'm wondering what the DAQmx Read VI is actually doing.
What I want to measure is a 1kHz signal. To do this, I'm using a VI similar to the attached one (a pulsed 1kHz signal serves as trigger and as sample clock).
The time the DAQmx Read VI needs to perform is 250ms longer than the acquisition time you would expect (e.g. instead 100ms to measure 100 samples at 1kHz the time is usually around 350ms, for 1000 samples it is ~1250 ms). The time does not depend on the number of channels in the task.
So my question is what actually happens when the DAQmx Read VI is called. What I would like it to do is: Wait for the next trigger signal, then acquire the specified number of samples, then read the samples from the buffers and return them. Is there any way to force this behaviour?
Thanks a lot for your answers, I highly appreciate any help!
Solved!
Go to Solution.
Attachments:
daqmxAcquisitionTime.PNG ‏20 KB

Rene,
For your application and hardware, you should be using DAQmx Control Task.vi to commit your task before your while loop.  Inside the loop, then you'd start/read/stop the task.  DAQmx uses a state machine to control task configuration and run time.  As written, when you cal DAQmx Read, DAQmx will see that you have a task which has never been configured.  As such, it will look at all the settings you make on the task, verify their correctness, reserve all resources necessary, write the configuration to hardware, then start your task.  Once the data specified has been read, it will unwind this state machine to put the task back in an unconfigured state.  As such, every time you call Read, DAQmx if going through all of it's state transitions.  If you were to commit your task before the loop, DAQmx would not re-verify your settings or need to re-program hardware each time through your loop.  That being said, there will still be some addition time each iteration of the loop where you will need to stop and restart your task, and during this time you could miss a trigger.
If it is truly not acceptable for you to miss a trigger, you might consider moving to a design in which you continuously read data, and then use software triggering to  keep track of the relevant sections of data.  One other alternative would be to look at the X Series line of DAQ devices, as these devices support retriggering in hardware (ie... They can retrigger without you needing to stop and restart your task).
Hope that helps,
Dan

Similar Messages

  • Why is the cd read speed so slow?

    Brand new iMac 27" 2.7GHz 16GB Ram  running 10.7.3.  CD read speeds are very slow...something like 5x.  Importing audio CDs to iTunes is extremely slow.  Error checking is turned OFF.  Any ideas?

    Slimline SuperDrives are always much slower than tray loading drives.

  • HT4528 Why is the WiFi and browser so slow on iPhone 5?

    Why is the WiFi and browser so slow on iPhone 5?  I've noticed they are not as quick as other smart phones and have seen this brought up in forums.  Also, the WiFi was slow with my iPhone 4 anyone know what the deal is?
    Thanks in advance

    Sadly that spiffy reply was of no use.  Browser is so slow and in looking at 3 different iPhones I have noticed there is a serious wait for any simple page to come up like MSN maybe its the iOS maybe Safari maybe should reset daily.  Truly not impressed Apple can you here us now?  Probably not... to busy restarting or resetting.
    Truly hope it improves in a hurry.

  • Why is the download/upload speed so slow on my MBA (about 5 times slower than my PC)?

    Why is the download/upload speed so slow on my MBA (about 5 times slower than my PC)?

    Are you on band 13 or band 4?  13 is the original LTE band and remains relatively congested. Band 4 is the XLTE band and is less congested and has higher overall potential bandwidth (15 MHz vs 10 MHz). Even so, 7 Mbps is more than enough for doing stuff on your phone and is not considered slow. 
    To check band,
    dial *3001#12345#*
    select serving cell info
    frequency band will say 13 or 4
    FInd an area with band 4 and retest. 

  • How does the DAQmx read.vi work in producer/consumer mode

    Dear all,
    I have one question: how does the DAQmx read.vi work in producer/consumer mode ? 
    I mean if i set the acquisition samples quantity is 5000,(see the enclosed picture), how does the DAQmx read.vi acquire the samples ?
    5000 samples one time ?
    And how does the write. vi work ? Also 5000 samples one time ?
    Look forward to your reply.
    Thank you.
    Attachments:
    producer consumer mode.png ‏28 KB

    It will read 5000 samples per channel.
    The Write Measurement File just writes whatever you give it.  It you send it 5000 data points, it will write the 5000 data points.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Why is the same wirelles connection too slow for an iphone4 when it is quite fast to an iphone5?

    Why is the same wirelles connection too slow for an iphone4 when it is quite fast to an iphone5?

    You really have a question for iPhone support here, so I suggest that you post in the appropriate support area:
    Using iPhone
    The experts over there will likely suggest that you use the Apple Troubleshooting Guide for iOS devices, so you might want to work your way through that before you post in the iPhone support area.
    http://support.apple.com/kb/TS1398

  • Why is the preview "Open" window so slow?

    Hey, there guys!
    I am wondering why it is that the new "Open" window is so slow in preview. It opens slowly, and when I select a folder, it takes a long time to index the folder's contents. However, I can open a file in preview using finder just fine. The indexing times are almost identical to those that I got when I first bought my mac. I noticed that after the update to Mountain Lion, there was a tab added to the top left called "iCloud". I'm wondering if this has anything to do with it?
    My question is: what I can do to increase the speed of the Preview "Open" command? I have seen a couple of forum posts regarding people having issues opening files, but none of them talked about the open window itself being slow.
    Thanks for your help!
    - Alpha Spartan A

    Agree the new ios6 is much slower. I found this post by doing a search to find out if it was only me. I've done off & on & a soft reset. Neither helped. Everything seems to load much slower & hangs.
    Maybe the new apps aren't optimized yet. However, I had one of my worst experiences with the Apple App Store. One would think they'd know how to optimize their own site & app.
    I just hope it's not a bloat issue because the "upgrades" are not worth the performance trade offs to me.
    Also, the iMaps are definitely not ready for prime time. I tried getting directions between two locations that were very mainstream and the app said it couldn't provide directions. I'll take Google without turn by turn, thank you. At least let us have a choice and let the best app win.

  • HT1355 Why is the new iOS 6 so slow on the App Store?

    Why is the iOS 6 so slow on the App Store?

    Agree the new ios6 is much slower. I found this post by doing a search to find out if it was only me. I've done off & on & a soft reset. Neither helped. Everything seems to load much slower & hangs.
    Maybe the new apps aren't optimized yet. However, I had one of my worst experiences with the Apple App Store. One would think they'd know how to optimize their own site & app.
    I just hope it's not a bloat issue because the "upgrades" are not worth the performance trade offs to me.
    Also, the iMaps are definitely not ready for prime time. I tried getting directions between two locations that were very mainstream and the app said it couldn't provide directions. I'll take Google without turn by turn, thank you. At least let us have a choice and let the best app win.

  • Why is the new iOS 6 so slow?

    Why is the my iPad 3 running so slow now I have updated to iOS 6. Also unable to access the app shop

    Agree the new ios6 is much slower. I found this post by doing a search to find out if it was only me. I've done off & on & a soft reset. Neither helped. Everything seems to load much slower & hangs.
    Maybe the new apps aren't optimized yet. However, I had one of my worst experiences with the Apple App Store. One would think they'd know how to optimize their own site & app.
    I just hope it's not a bloat issue because the "upgrades" are not worth the performance trade offs to me.
    Also, the iMaps are definitely not ready for prime time. I tried getting directions between two locations that were very mainstream and the app said it couldn't provide directions. I'll take Google without turn by turn, thank you. At least let us have a choice and let the best app win.

  • Why is the voice recognition software so slow sometimes?

    What determines the responsiveness of the voice recognition software on the texting application on the iphone5?

    Agree the new ios6 is much slower. I found this post by doing a search to find out if it was only me. I've done off & on & a soft reset. Neither helped. Everything seems to load much slower & hangs.
    Maybe the new apps aren't optimized yet. However, I had one of my worst experiences with the Apple App Store. One would think they'd know how to optimize their own site & app.
    I just hope it's not a bloat issue because the "upgrades" are not worth the performance trade offs to me.
    Also, the iMaps are definitely not ready for prime time. I tried getting directions between two locations that were very mainstream and the app said it couldn't provide directions. I'll take Google without turn by turn, thank you. At least let us have a choice and let the best app win.

  • Why is the FPGA compiler server so slow?

    FPGA Cloud compiler is faster because NI servers are high performance, right????
    Well, my Windows 7 PC is high performance, but no luck there!
    Total CPU usage is never more than 25% and total memory usage (including other applications) is less than 16%.
    Why does the compile server not use all available resources? has it been restricted?
    How can I leverage more power from my PC?
    If NI Servers can compile code quicker, there must be plausible explanation / reason?
    Please advise, how to make the compile server run faster locally?
    Solved!
    Go to Solution.

    Try this if you haven't yet:
    http://forums.ni.com/t5/LabVIEW-FPGA-Idea-Exchange/Turbo-Boost-the-speed-of-FPGA-compiles-under-Wind...
    In my experience, taking advantage of Intel's Turbo Boost (my PC has i5) reduced compile time from 85 minutes to 45.
    I'm currently testing Cloud Compiler and it took 110 minutes.  How can Cloud Compile Server be the slowest compile?

  • Why is the thermocouple reading wrong?

    Situation:
    I have the PCI-6221 interface board with an TBX-68 connector block directly connected with T-Type thermocouples. Thus the temperature reading should only be between 0 and 400°C. I made a program to read 6 thermocouple channels.
    Problem:
    I only connected the first two channels. These are reading properly but the others give me signals which are completely nonsense! Like 600°C and so on. Do I need to install an condensator (like 10µF) at the conector block between the thermocouple contacts? How can I get a constant 0°C out of not contacted thermocouple channels?
    Greets
    Attachments:
    Thermocouples reader1.jpg ‏203 KB

    The nonsense it because of the open terminals, and the bias currents off the inputs.
    If you shortcut the inputs you should read the board/cold junction/room temperature.
    Or wire a 1M from AI+ to 5V and another from AI- to GND (diff mode assumed). That would give a max/overrange reading, but might have some influence to the other channels due to crosstalk but worth a try. 
    The clean way is to disable the readings by software.
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Why is the download for CS6 so slow

    I am trying to download the CS6 installer to my new laptop and the Adobe website is taking over 5 hours for a 9 minute download. Why is it so slow?

    It depends on
    what installer package you are trying to download - some are over 6 GB, which can take up to 30 minutes to complete
    your Internet connection; I am 10,000 km away from the Adobe download servers, but every download completes within a few minutes
    Try downloading the offline installers from http://prodesigntools.com/adobe-cs6-direct-download-links.html
    Make sure you follow the Very Important Instructions on that page.

  • In my events the key photos no longer show up and the picture amount reads 0, but the pictures are still there when I click on that event. Why does the amount read 0?

    In some of my events in iphoto no pictures show up in the key photos. In others they do. I just upoaded some and no problem. I noticed that in the lower right corner of each event with no key photo the photo amount reads zero. I click on that event and all of the photos do show up. Does anyone know why this is  happening, or have come across this before? Thanks, Daryl

    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.

  • Why is the new iTunes 7 SSSOOOOOOOOOOO slow?

    I upgraded to the new iTunes 7 today and HOLY COW it's so slow I almost don't want to use it! Deleting a single song takes over 2 minutes! I'm not even doing anything trickey like downloading or copying - just opening and deleting are OUCH! slow! Why?

    iPad running slow? How to speed up a slow iPad
    http://appletoolbox.com/2012/07/ipad-running-slow-how-to-speed-up-a-slow-ipad/
    If You Think iOS 7 Feels Slow Here’s How to Speed It Up
    http://osxdaily.com/2013/09/23/ios-7-slow-speed-it-up/
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
     Cheers, Tom

Maybe you are looking for