Пример #1
0
 /// <summary>
 /// Async call to read the data.
 /// </summary>
 protected void ReadData()
 {
     if (IsCounter)
     {
         CurReadWaitResult = CounterReader.BeginReadMultiSampleUInt32(SamplesPerReadTick, OnDataRead, null);
     }
     else
     {
         CurReadWaitResult = AnalogReader.BeginReadMultiSample(SamplesPerReadTick, OnDataRead, null);
     }
 }