Exemple #1
0
 /// <summary>
 /// Starts continuously sampling the sensor.
 ///
 /// This method also starts raising `Changed` events and IObservable
 /// subscribers getting notified. Use the `readIntervalDuration` parameter
 /// to specify how often events and notifications are raised/sent.
 /// </summary>
 /// <param name="sampleCount">How many samples to take during a given
 /// reading. These are automatically averaged to reduce noise.</param>
 /// <param name="sampleIntervalDuration">The time, in milliseconds,
 /// to wait in between samples during a reading.</param>
 /// <param name="standbyDuration">The time, in milliseconds, to wait
 /// between sets of sample readings. This value determines how often
 /// `Changed` events are raised and `IObservable` consumers are notified.</param>
 public void StartUpdating(
     int sampleCount            = 10,
     int sampleIntervalDuration = 40,
     int standbyDuration        = 100)
 {
     AnalogInputPort.StartSampling(sampleCount, sampleIntervalDuration, standbyDuration);
 }