Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Internal clock for the counter

Hello everyone,

 

I am new to NIDAQmx and I am doing angular position measurement. I found provided sample for the counter, 

it says that I need to use external sample clock. Could someone provide me sample, that uses external clock that was generated by one task

and another task which uses that generated clock and reads encoder input! I am doing it in C++.

 

Thank you!!!

0 Kudos
Message 1 of 2
(5,539 Views)

Hello Khassan,

 

Here is a link to a Developer Zone article that describes how to implement two tasks that share a clock, The example covers how to implement this with Analog input and output. You can work with it to fit it to your application: http://zone.ni.com/devzone/cda/epd/p/id/2352

 

Reagards,

 

-Travis E

National Instruments
Product Marketer
Message 2 of 2
(5,526 Views)