I'm generally an advocate *for* the use of counters, but in this case I'd actually suggest that you do some software processing
on the analog voltage from your linear pot. My guess is that the range of travel will not be utterly consistent in your test rig. Every
time you break out your tools to adjust your brackets and sensor placements, you'll see the range shift. Maybe an offset, maybe
a scale factor, maybe both. So the problem with an external circuit is selecting the correct threshold voltage used to delineate
logical low from high.
In this case, you may want to consider doing some simple software processing on the analog linear pot signal. There will be some
nominal expected shape, and you can design your processing around detecting the "end of cycle" signature. This may be fairly
easy, but it will depend on the expected shape and the nature of your motion cycles (continuous or discrete).
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.