LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Low Frequency Measurement using DI-310 Digital Input

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 !!

0 Kudos
Message 1 of 3
(2,086 Views)

Hello shadymohamed,

 

can you tell me what LV version you are using.

Thank you.

 

Best regards,

Tobi

0 Kudos
Message 2 of 3
(2,047 Views)

just looking for the falling slope and no debouncing ...

ppm.png

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 3 of 3
(2,040 Views)