06-11-2010 10:57 AM
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
06-11-2010 05:08 PM
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,
06-14-2010 09:57 AM
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
06-14-2010 09:38 PM
Hi Henrik,
Do you have a DAQ card to convert the 24V signal into something that can be read by the computer?
Best Regards,