Re: DAQmx read progress

This is a discussion on Re: DAQmx read progress within the labview forums in Programming Languages category; I don't think you can exactly do what you are trying to do.  As I think you've discovered, the DAQmx read VI is holding until the given amount of sample are read.   A possible work around if you know the number of samples to read and the sample rate is to generate the progress bar in a parallel loop.  Have that loop begin when the DAQ mx read begins.  Let's say you are doing 5000 samples as 50 samples /second., then you know it would take 100 seconds to read.  Use timing functions in the parallel loop to update ...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-08-2008, 04:40 PM
Ravens Fan
Guest
 
Default Re: DAQmx read progress

I don't think you can exactly do what you are trying to do.  As I think you've discovered, the DAQmx read VI is holding until the given amount of sample are read.
 
A possible work around if you know the number of samples to read and the sample rate is to generate the progress bar in a parallel loop.  Have that loop begin when the DAQ mx read begins.  Let's say you are doing 5000 samples as 50 samples /second., then you know it would take 100 seconds to read.  Use timing functions in the parallel loop to update the progress bar as a percentage of time that has passed.  If your timing is correct, the DAQmx read and the parallel loop should end at about the same time.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:22 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.