LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter/Timer PCI-6110

Hi - I have little to no experience with counter/timers. I am looking for an example of how to use the counter/timer inputs on my PCI-6110 to detect rising digital edges.

I have a proximity switch that is sensing a bolt rotating on a shaft...I would like to time between the rising edges and use this to calculate RPM's.

Any help is greatly appreciated.

Thanks,
Ryan
Ryan

LV 7.1
0 Kudos
Message 1 of 3
(2,563 Views)
Hi Ryan,

Since you are trying to measure the frequency or period of a series of digital pulses, I would suggest using the counter/timer capabilities of your board.

LabVIEW has many example programs included in it (including several examples that do what you are looking for). You can get them by going to Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Counter Measurements >> Digital Frequency

Here you will see several examples, choose whichever one looks like it will work best with your application. I would also suggest trying a couple different ones to get a feel for how they differ. Also, take a look at the code to see how it operates.

Thanks,
Sal
0 Kudos
Message 2 of 3
(2,555 Views)
Sal - Thanks a ton for the response, I will give it a shot. I had searched through the Help files but I had done a search on "counter/timer" and came up with some more complicated traditional approaches.

Ill report back after I have had a a chance to try this out!

Thanks!
Ryan

LV 7.1
0 Kudos
Message 3 of 3
(2,549 Views)