Time

Output the value of the current simulation time and the simulation step

Category: Source

Description:

This block allows one to use the current simulation time. As it is a varying quantity, it is incremented according to the simulation time step which is also informed by this block. In Figure 1, it is possible to see a Time block connected to a Scope block and a Display block. After the simulation, a monotonically increasing signal (time value) and a constant signal (simulation step) can be seen. The simulation was set to have 10s of duration and using a Simulation Step of 0.1s.

Figure 1 - Time block connected to a Scope and Display blocks

Figure 2 - Time value shown as a signal in the Scope block

Ports:

Output

At each simulation step, this port delivers a sample with the value of the current simulation time.

Data Types:

At each simulation step, this port returns the value of the simulation step. The simulation step is the value currently used by the numerical integrators in the model.

Data Types:

About MWF

MWF is a traditional Brazilian company that provides a wide range of electronic and mechatronic products for industry sectors such as automotive, agricultural machinery and aerospace.

Contact Us

Rua Doutor Siqueira, 139 / Sala 804 Campos dos Goytacazes - RJ, Brasil

contact@mwf-technologies.com

© 2018-2026 MWF. All rights reserved.