Class SoftDigitalSignalAnalyzer
Implements frequency and duty cycle analysis of digital signals using software-based timing measurements.
Assembly: Meadow.Contracts.dll
View Source
public class SoftDigitalSignalAnalyzer : IDigitalSignalAnalyzer, IDisposable
Implements:
Meadow.Hardware.IDigitalSignalAnalyzer, System.IDisposable
Properties
IsDisposed
Returns true if the analyzer has been disposed
View Source
public bool IsDisposed { get; }
Methods
GetCount()
Gets the current sensor count
View Source
public ulong GetCount()
Returns
System.UInt64
GetDutyCycle()
Measures the duty cycle of the digital signal.
View Source
public double GetDutyCycle()
Returns
System.Double
: The duty cycle as a ratio between 0 and 1, where 0 represents always low
and 1 represents always high.### GetMeanFrequency()
Calculates the average frequency over the measurement period.
View Source
public Frequency GetMeanFrequency()
Returns
Meadow.Units.Frequency: The mean frequency of the digital signal.### GetFrequency() Takes an instantaneous measurement of the signal frequency.
View Source
public Frequency GetFrequency()
Returns
Meadow.Units.Frequency: The current frequency of the digital signal.### Dispose(bool)
View Source
protected virtual void Dispose(bool disposing)
Parameters
Type | Name |
---|---|
System.Boolean | disposing |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
View Source
public void Dispose()
Implements
- Meadow.Hardware.IDigitalSignalAnalyzer
System.IDisposable