08-28-2007 11:56 AM
08-28-2007 03:56 PM
The sample rate of the ASCII file that is generated from the log file should have the same sample rate as the acquisition, i.e. the dt value in the created ASCII file in the log file directory should match the "Rate" specified in the DAQmx Acquire configuration. It is a little confusing that you specify a sample rate in Hz and the ASCII file contains a dt in seconds, but they should match.
When doing the 100s log you should be able to use the same rate and "Samples to Acquire" as you did for the 10s acquisition. Just change the stop condition to 100s.
08-28-2007 08:02 PM
08-28-2007 08:47 PM
08-29-2007 01:42 AM
08-29-2007 07:35 AM
08-29-2007 09:13 AM
Hi Ima,
Thanks for your help!! Well, I see that it is logging in the data for the required run time but why it is always logging the samples at time step dt 0.0005s even though I specify a different sample rate. What I mean to say here is it should log the samples (if rate is 100 samples per sec, dt should be 0.01s and not 0.0005s) at user defined rate and not the default 0.0005sec!
Thank you!
08-29-2007 09:55 AM
08-29-2007 10:05 AM
08-31-2007 10:20 AM
Hi!
I have another question to you about logging data!
Well, I just want to know what happens if one uses discrete instead of continous way for logging in the data. I know it skips the samples but what is the pattern of the points that is written out to ascii file.
Say if the discrete block is 100 samples and sampling frequency is 100 htz, and the run is for 10 seconds. When it writes out the data to an ascii file, in which way are the samples wriiten out to the file, I mean does it skip the samples in between or does it write out the data sequentially by storing the data in a buffer and lose the last part of the samples when we stop the run.
Thanks for your help!