01-25-2007 12:04 PM
01-25-2007 01:05 PM
01-25-2007 01:12 PM - edited 01-25-2007 01:12 PM
Goju-Ryu,
Sampling rate is sampling rate. It is the frequency of the data collection of that task- no matter how many channels or number of samples you grab.
The number of samples is how many samples the program returns from the DAQ buffer upon query. The query is how often does the samples get read. The query rate = sampling rate/# of samples (Hz).
This means if you have a task in a while loop, the while loop must iterate at a frequency greater or equal to query rate. If it does not, then the DaQ buffer fills up. Every time the while loop iterates the specified number of sample is returned. This also means that all of the code inside the while loop must be done before the next query.
I hope I have explained it enough.
Chris Co
Sorry you beat me- i'm slow typer
Message Edited by Chris Co on 01-25-2007 01:13 PM
03-06-2007 03:16 PM
05-31-2007 02:01 PM
05-31-2007 02:18 PM
05-31-2007 02:36 PM
Hi,
I tried with a sampling rate of 5kHz and no. of samples to read 1000. For a 10 minutes recording it created a 500Mb file out. Also, there has been breaks in recording data as seen by broken time stamps with a gap of 3 to 4 minutes with the header getting written again each time when there is a break. Is it the problem with sampling rate/no. of samples to read? Also, the output file created issues, it cannot be fully opened by excel program due to limitaion on no. of rows ; should not be greater than 65500 rows or so.
05-31-2007 03:27 PM
06-12-2007 05:31 AM
Hi all
I request the forum to download and see the myprogram.vi file and freely do modifications which you think is correct for the proper functioning of it. Also, please post back the fine tuned program.
With regards,
Ruwan
03-22-2008 07:17 AM
Hello,
I have this program, which reads in three line current and three line voltages in a 50Hz three phase power supply. I used a PCI 6221 DAQ. When I give a sampling rate of 11KHz, the recored signals shows discontinuity as evident from the time stamping. What could be the reason? Please advice. I am attaching the program and also the recorded output, alternate columns in it starting from column A are time stamps and the remaining are current and voltage data.
UnniVat