Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO CLEAR CONUTER

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

 

 

0 Kudos
Message 1 of 1
(5,110 Views)