LinearRamp

LinearRamp#

class LinearRamp(options)#

Bases: TrapezoidalPulse

LinearRamp generates a linear ramp waveform.

Creates a waveform that linearly transitions from a start value to a stop value over a specified ramp time. Inherits from TrapezoidalPulse with zero fall time to create a pure ramp.

Example1:

% Basic linear ramp
ramp = LinearRamp(startValue = 0, stopValue = 5, rampTime = 0.01);
ramp.plot();

Example2:

% Negative ramp
ramp = LinearRamp(startValue = 10, stopValue = 0, rampTime = 0.005);
ramp.plot();
Constructor Summary
LinearRamp(options)#

Construct a LinearRamp object.

Parameters:
  • samplingRate (double, optional) – Sampling rate in Hz (default: [])

  • startTime (double, optional) – Start time in seconds (default: 0)

  • duration (double, optional) – Total duration in seconds (default: [])

  • startValue (double, optional) – Initial ramp value (default: 0)

  • stopValue (double, optional) – Final ramp value (default: 0)

  • rampTime (double, optional) – Ramp duration in seconds (default: 0)

Property Summary
RampTime double = 0#

Duration of the ramp transition in seconds.

StartValue double = 0#

Initial value of the ramp.

StopValue double = 0#

Final value of the ramp.