"Helmut E." wrote in news:50650000000500000083AC0000-
1031838699000@exchange.ni.com:
> Thanks again for the answers.
>
> The problem is, that I get more then one impulse from the starting
> light barrier (and the impulse is very short).
> So my idea was, to connect the START and the STOP light barrier with
> monoflops (to extend the pulsewide of the starting edge to a time
> which is longer then the expected total time of the measurement),
> invert the STOP impulse and connect it by an AND to the gate of the
> counter (If anybody is interested I can give him the connection
> diagram).
> It`s a time-consuming solution, but as far as I can see from your
> answers, the only way to solve this problem with that card (never
buy
> low cost devices....)
>
> best regards, Helmut
Wouldn't be my approach at all!! So long as you're venturing into
hardware you can
a) debounce your starting light barrier, if the waveform is suitable (get
a copy of Horowitz and Hill, "The Art of Electronics", and look up
debounce in the index
b)--Guaranteed to work, even if your waveform is unsuitable for
debouncing-- Use your light barrier output to trigger a Non-
retriggerable monostable multivibrator (i.e., one-shot), with a pulse
output that is longer than your light barrier event. The leading edges
will match up near perfectly. You can then use these pulses in many
ways-- to toggle a toggle flip-flop, for example.
Even the dedicated counter/timer cards sometimes don't directly support
the mode you would like them to operate in.
--
Scott
Reverse first field of address to reply