Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Input counting

Hi lads.

 

i'm new at labview. and i'm wondering how to make a program counting pulses in labview.

This is the case:

 

I got a movment sensor placed at my door. And i wanna see on labview how manny has enterd the room. So every time the input is high i want labview to count 1. and if it gets high again, then is 2 and so on.

 

And ofc a reset button. 

 

Would be awsome if someone can help me.

 

Best regards

Henrik

0 Kudos
Message 1 of 4
(6,197 Views)

Hi Henrik,

 

What are you using to digitize the output of your sensor and what kind of values does the sensor output?

 

I've used a VI similar to the one attached below to do this in software given a single-point analog input signal.  It arms an event counter when the input signal is below a certain threshold, and increments a counter when the signal raises above a different threshold.

 

 

Best Regards,

John Passiak
0 Kudos
Message 2 of 4
(6,191 Views)

Hi John

 

My sensor is pointed against a reflector. So everytime someone walks into the room the reflection is broken. then the sensor Sends out a 24V signal.

 

So when my input is high, i want my labview program to count 1 up. if you get me?

 

 

Thank you for helping

 

 

0 Kudos
Message 3 of 4
(6,165 Views)

Hi Henrik,

 

Do you have a DAQ card to convert the 24V signal into something that can be read by the computer?

 

 

Best Regards,

John Passiak
0 Kudos
Message 4 of 4
(6,154 Views)