02-02-2009 09:40 AM
Hello,
I need to setup counters on a PCI-6634E or USB-6251 (customer choice) to count encoder pulses from spindles running at a wide range of RPMs.
I'm currently using DAQmxCreateCIFreqChan() which allows me to setup the counters Measurement Method to DAQmx_Val_LowFreq1Ctr , DAQmx_Val_HighFreq2Ctr or DAQmx_Val_LargeRng2Ctr .
There is also a Measurement Time argument to the function. The help says it only applies to the DAQmx_Val_HighFreq2Ctr method, but I suspect it applies to other methods as well.
These selections seem vague to me and I need some guidance as to how they apply to DAQ modules with different characteristics.
I can make the counters work OK for a specific RPM and encoder but switching to the other DAQ module or to another RPM or encoder often leads to timeout errors. I think if I could understand what is meant by "HighFreq" or "LargeRng" I might be able to make better decisions about what counter mode to select for a given situation.
Is there a document that I haven't found that explains this?
Thanks
02-02-2009 12:42 PM
02-03-2009 03:40 PM
02-09-2009 10:46 AM
Thanks, that is much of what I was looking for.
I still have some questions about the timebase when using the High Frequency Two Counter (DAQmx_Val_HighFreq2Ctr ) method. Does the function argument named "Measurement_Time" automatically select a timebase and count value to achieve the value of the argument? If so, why all the warnings about overrunning the counter. If not, how do I control or select the timebase and count values? .
02-10-2009 05:19 PM