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
↧