01-20-2010 02:08 AM
I am currently working on a sensor which senses the presence of objects every 0.1s.
However, I only need signals(boolean signals) which last for 1s(or more), any quick signal is to be ignored.
Is there any ways that i can achieve this programmatically?
Your help will be much appreciated!
01-20-2010 08:12 AM
If you get a voltage change or something similar I would use pulse width to chek for this. Only look for a pulse width greater than ....
You really didn't give much information for me to help more.
01-20-2010 07:50 PM
Sorry for the inadequate information... Please allow me to elaborate some more.....
This is an automation system which will pause itselt upon receiving a TRUE signal from the sensor, and no action will be taken when the signal is FALSE.
There is an object flow in front of the sensor, and a TRUE signal will be given whenever an object passes by the sensor.
However, I only need those signals which last for a moderately long time( which represents that there is an object stucked in front of the sensor) to pause the system. Flashes of TRUE signals( this happens when objects passes by the sensor 1 by 1 in normal condition) should be eliminated. Otherwise, the system will jerk every time an object passes.
By the way, I am using PCI-7330 for the motion control and data reading.
01-20-2010 09:10 PM
Please refer to attached screenshot.
Just replace boolean with signal from your card, and trigger is a signal output that you want.