HI
I used the following example sub to count events during 1s.read out the counter value then reset it to 0.
myTask.CIChannels.CreateCountEdgesChannel(counterComboBox.Text, "Count Edges", _ edgeType, Convert.ToInt64(initialCountTextBox.Text), countDirection)
myCICounterReader = New CounterReader(myTask.Stream)
myTask.Start()
myReading = myCICounterReader.ReadSingleSampleUInt32()
'how to reset the counter=0 after reading?
countTextBox.Text = Convert.ToString(myReading)
thx