# Simulink
# Modeling
Use Simulink® to model algorithms and physical systems using block diagrams. You can model linear and nonlinear systems, factoring in real-world phenomena such as friction, gear slippage, and hard stops.
# Block Libraries
Blocks that represent equations and modeling concepts. Blocks are the main elements you use to build models in Simulink®. Use the Library Browser to browse and search the block libraries. When you find the block you want to use, add it to your model.
# Continuous Blocks
# Integrator
The Integrator block outputs the value of the integral of its input signal with respect to time. Simulink® treats the Integrator block as a dynamic system with one state. The block dynamics are given by:
where:
is the block input.
is the block output.
is the block state.
is the initial condition of x.
While these equations define an exact relationship in continuous time, Simulink uses numerical approximation methods to evaluate them with finite precision. Simulink can use several different numerical integration methods to compute the output of the block, each with advantages in particular applications. Use the Solver pane of the Configuration Parameters dialog box (see Solver Pane) to select the technique best suited to your application. To support this computational model, the Integrator block saves its output at the current time step for use by the solver to compute its output at the next time step. The default value of the initial condition is 0.
Use the parameter dialog box to:
- Define upper and lower limits on the integral
- Create an input that resets the block's output (state) to its initial value, depending on how the input changes
- Create an optional state output so that the value of the block's output can trigger a block reset