08-06-2008 03:40 AM - edited 08-06-2008 03:49 AM
08-07-2008 02:11 PM
Hi Kemot,
If you set your sampling rate to 1 kHz, then you should be acquiring 1000 samples every second into your buffer. Now depending on how many samples are being read from your buffer, it may appear as though you are reading more or less samples. If you want to return 1000 samples every time you call a DAQmx read function, you must set the "number of samples per channel" input to 1000. Note that the DAQmx read function is simply taking the data from your buffer into application memory and so your hardware is always be sampling at 1 kHz without missing any data.
Also, I would like to point out that there are tons of great DAQmx shipping examples in LabVIEW that you could refer to. You can view these in your Example Finder by accessing it under Help » Find Examples.... The example we are particularly interested in would be under Hardware Input and Output » DAQmx » Counter Measurement » Position » Meas Angular Position-Buffered-Cont-Ext Clk.vi.
I hope this helps,