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

How to synchronize 2 Counter tasks in .Net

$
0
0
I create 2 Counter tasks to measure the same square wave signal in c#. Task 1 will measure the signal's semi-peroid, sample size 20 and start at rising edge. Task 2 will measure the signal's peroid, sample size 10 and start at rising edge. I want the 2 tasks start at the same rising edge. If that, the each peroid result of task2 will equal to the sum of each 2 semi-peroid results of task1. So, how to set the 2 tasks start at the same rising edge in c#? Or, should I put the 2 measurements in one task? Regards, Daniel

Viewing all articles
Browse latest Browse all 1244

Trending Articles



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