pashehnet.sensors.sources.sawtoothwave#

Module Contents#

Classes#

SawtoothWaveSource

Provides a sawtooth wave source using scipy.signal.sawtooth

API#

class pashehnet.sensors.sources.sawtoothwave.SawtoothWaveSource(frequency, sample_rate, width=1.0)#

Bases: pashehnet.sensors.sources.base.SensorSourceBase

Provides a sawtooth wave source using scipy.signal.sawtooth

Initialization

Construct a new SawtoothWaveSource object

Parameters:
  • frequency – Frequency of the sawtooth wave in Hz

  • sample_rate – Sampling rate in Hz

  • width – Width of the rising ramp as a proportion of the total cycle (default is 1.0)

__iter__()#
__next__()#

Implementation for iterator

Returns:

Next value from the sawtooth wave source

__slots__ = ()#