11-27-2005 07:37 PM
11-28-2005 01:34 PM
Hi David-
The easiest way to measure digital frequency (i.e. RPM) using your M Series card is to perform buffered event counting on one phase of your encoder signal. This provides you with hardware-timed interval counts of the number of rising edges that occur during known measurement periods. From the count values and the measurement periods you use, you can easily extrapolate an RPM value based on the number of pulses you expect per revolution of your shaft.
A great LabVIEW example to show the setup for NI-DAQmx is "Count Digital Events-Buffered-Continuous-Ext Clk.vi" which can be found in the NI Example Finder (Help>>Find Examples) by browsing to Hardware Input and Output>>DAQmx>>Counter Measurements>>Count Digital Events. The required external clock could easily be supplied using a second counter for pulse train output as shown in Hardware Input and Output>>DAQmx>>Generating Digital Pulses>>Gen Dig Pulse Train-Continuous.vi. The clock source for the edge counting VI would then be of the form "/Dev1/Ctr0InternalOutput"
Hopefully this helps-
11-28-2005 05:38 PM
Hi Tom,
Thanks for your reply. I have done what you have suggested (combining the two examples) but im still at a loss on how to correctly configure this....im sure its not as difficult as im making it out to be but any further help would be appreciated. I have attached what I have done so far.
11-28-2005 05:41 PM - edited 11-28-2005 05:41 PM
Message Edited by Tom W. on 11-28-2005 05:42 PM
11-28-2005 05:44 PM
Hi Tom,
Is it possible to do both operations at once? I need position and RPM.
11-28-2005 09:47 PM
11-29-2005 08:37 AM