11-21-2012 01:32 AM
Hello
I'm trying to measure the the frequency of a limit switch pulse that's input to the Digital Input of the DI-310 Fieldpoint module.
The pulse is a typical square wave consisting of a 1 Followed by a 0 (A typical Press on the switch) ,the frequency of the wave ranges between 0-4 Hz ,and due to the low frequency range ,the indication in my case is Pulses Per Minute which can range in this case from 0 to 300 pulse per minute for example.
I tried to do this using a complex way by using a shift register to compare the previous pulse to the current pulse and then increment a counter and then use the rate of change of this counter as an indication for me :s.
What I think will be more accurate is if I can measure the time between each two successive switch presses (0-1-0 followed by another 0-1-0) and then find the frequency by 1/t .but I don't know how to do this.
Please Help !!
11-22-2012 10:04 AM
Hello shadymohamed,
can you tell me what LV version you are using.
Thank you.
Best regards,
Tobi
11-23-2012 02:29 AM
just looking for the falling slope and no debouncing ...