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