09-21-2007 03:35 PM
DAQmxErrChk (DAQmxSetReadOverWrite(m_taskHandle2, DAQmx_Val_OverwriteUnreadSamps));
DAQmxErrChk (DAQmxSetReadRelativeTo(m_taskHandle2, DAQmx_Val_MostRecentSamp));
DAQmxErrChk (DAQmxSetReadOffset(m_taskHandle2, 0));
Thanks
09-24-2007 06:13 PM
I need some more information form you: What DAQ card are you using? How many pulse you should have in one revolution when the RPM is equal to 1500? Are you building your task from scratch or are you using one of the shipped examples? You might want to take a look at How to ignore DAQmx overwite error 200279?. Is it possible for you to include your code as an attachment?
09-25-2007 04:25 PM
Search your computer for “MeasDigFreqBuffCont_LargeRange2Ctr” it is an example that you should have already install since it comes as part of the NI DAQmx drivers. It might give you different approach on how to measure RPM. I would like to clarify what is your input to the counter (i.e. encoder)? Why are you setting up two counters?