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

read a counter in python

$
0
0

hello i have created a task the read the counter

with nidaqmx.Task() as task:
      task.ci_channels.add_ci_count_edges_chan('Dev1/ctr0', initial_count=0, edge=Edge.RISING, count_direction=CountDirection.COUNT_UP)

      tsk = task.read()

      print(tsk)

every time i read the task the counter start from 0

how i can have a continuos reading in order to display it continuosly?

 

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>