Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple measurement of an encoder?

Sorry if this is redundant. I've searched here and the examples. I see several examples that measure quadature encoders and do period measurements, but I am wondering if there is some very simple logic to do the following:
 
Count the number of rising edges
Keep track of the time
At a specific time interval (user controlled) display the total counts
Reset the counts and the timer and start again.
 
I just want to know the number of pulses that I saw over xx microseconds.
 
For whatever reason I'm having a brain block lol. This should be very simple.
 
I'm using the FPGA of a cRIO and a 9411 card. It does have the quadature inputs connected but I don't think I need any more than one channel.
 
In the end I will be calculating velocity with a user defined time interval.
 
Jeff
0 Kudos
Message 1 of 3
(4,507 Views)
Have you looked at the shipping examples
c:\program files\national instruments\labview 8.2\examples\compactrio\fpga fundamentals\counters
 
Let us know if these work for you
Preston Johnson
Solutions Manager, Industrial IoT: Condition Monitoring and Predictive Analytics
cbt
512 431 2371
preston.johnson@cbtechinc
Message 2 of 3
(4,501 Views)

Perfect! I knew that there would be an example somewhere in there 🙂

 

Thanks!

 

Jeff

0 Kudos
Message 3 of 3
(4,495 Views)