Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

how to stop Counter output when a condition mets from Digital or analog input in LV

$
0
0

I am using Daq Assistant to generate pulses on a counter to drive a stepper motor. Counter pulses are correct when using without while loop and setting the "samples" on the daq Assistant in advance.

        In contrast, when i want to stop the counter when a certain condition is met from checking analog/digital input. In this case the period is not consistent and not exact. for this i put the daq assistant inside a Timed Loop and modified the samples  to read to 1.HI/Lo time is 250us, Loop dt =500 , clock 1MHz selected on timed loop.

please see whether this approach is fine or suggest alternate one so that we can stop counter when a certain digital input becomes HI.

Thanks


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>