Ramp - MapleSim Help

Online Help

All Products    Maple    MapleSim


Ramp

Generate ramp signal

 

Description

Equations

Connections

Parameters

Description

The Ramp component generates a continuous, real, ramp signal.

The boolean parameter Smooth corners selects whether the corners are smoothed, the smoothness parameter, which can be varied from 0 to 1, determine the smoothness. If smoothness is greater than 0, the output signal has a continuous derivative. The smoothing interval is equal to the smoothness factor times half the ramp time.

Equations

If Smooth corners is false, the output signal is

y=offset+height{0tT0tT0TrtT0+Tr1otherwise

If Smooth corners is true, it is

y=offset+height{0tT0tT0Tr22S2StT0+STr212+tT0Tr2Tr22StT0+TrSTr21tT0TrTr22S2StT0+Tr1otherwise

with

S=min1,max0,smoothnessandt=time

Connections

Name

Description

Modelica ID

y

Real output signal

y

Parameters

Name

Default

Units

Description

Modelica ID

height

1

 

Height of ramp

height

Tr

 

s

Durations of ramp

duration

Smooth corners

false

 

True means enable the smoothness factor

smoothCorners

smoothness

 

 

Smoothness factor (0: sharpest, 1: smoothest)

smoothness

offset

0

 

Offset of output signal

offset

T0

0

s

Output = offset for time < startTime

startTime

See Also

Real Sources

Signal Blocks

Signal Sources