10-13-2019 09:28 AM - edited 10-13-2019 09:31 AM
I'll respond here to a new thread you created for the same general issue.
@DMic wrote:
is it possible to read the pulses which are out from the counter out of the same card 6229 using AI or DI channels which is best option.
If you want a "live monitor" of step counts, I think your best option is probably either AO or DO, whichever is less likely to be needed for other things. Here's how it'd work:
1. Configure the output task to use the counter's output as it's sample clock. The 'source' input to DAQmx Timing can be set to something like "/Dev1/Ctr0InternalOutput". (On a DAQmx terminal constant, right-click and select "I/O Name Filtering" from the menu. Then check "Include Advanced Terminals" in the popup.) Make it a continuous task.
2. Write meaningless data to the task with DAQmx Write. Something like all 0.0 V values for AO or all low state values for DO.
3. Start this task *before* starting the CO pulse generating task.
4. You can query this AO / DO task for "Total Samples Per Channel Generated" using a DAQmx Write property node. That # will be your step count.
5. When the CO pulse task is done, stop the AO / DO task too.
-Kevin P