Engee documentation

Step

Generates a step function.

step

Description

Unit Step ensures that the signal changes between two specified levels at a specified time. If the simulation time is less than the value of the parameters Step time, the block output is equal to the value of parameter Initial value. If the simulation time is greater than or equal to the value of the parameter Step time, the output is equal to the value of the parameters. Final value.

Ports

Output

# OUT_1 — output signal
scalar | vector

Details

Output signal of the function Step*defined by parameters *Step time, Initial value и Final value.

Data types

Float64.

Complex numbers support

No

Parameters

Main

# Initial value — output value before the step
Scalar / array of real and/or complex numbers

Details

Block output if the simulation time is less than the parameter value Step time.

Default value

0.0

Program usage name

Before

Tunable

Yes

Evaluatable

Yes

# Final value — output value after a step
Scalar / array of real and/or complex numbers

Details

Block output when the simulation time is greater than or equal to the parameter value Step time.

Default value

1.0

Program usage name

After

Tunable

Yes

Evaluatable

Yes

# Step time — stride time
Scalar / array of real numbers

Details

Time in seconds when the output goes from the parameters value Initial value to a parameter Final value.

Default value

1.0

Program usage name

Time

Tunable

Yes

Evaluatable

Yes

# Sample time — interval between calculation steps
SampleTime (real number / vector of two real numbers)

Details

Specify the interval between calculation steps as a non-negative number. To inherit a calculation step, set this parameters to -1.

Default value

0

Program usage name

SampleTime

Tunable

No

Evaluatable

Yes

Additional options

C code generation: Yes