Documentation

IC

Set initial value of signal

Library

Signal Attributes

Description

The IC block sets the initial condition of the signal at its input port, for example, the value of the signal at the simulation start time (tstart). The block does this by outputting the specified initial condition when you start the simulation, regardless of the actual value of the input signal. Thereafter, the block outputs the actual value of the input signal.

    Note:   If an IC block has a nonzero sample time offset (toffset), the IC block outputs its initial value at time t,

    t = n * tperiod + toffset

    where n is the smallest integer such that t ≥ tstart.

    That is, the IC block outputs its initial value the first time blocks with sample time [tperiod, toffset] execute, which can be after tstart.

The IC block is useful for providing an initial guess for the algebraic state variables in a loop. For more information, see Algebraic Loops.

Data Type Support

The IC block accepts and outputs signals of any Simulink® built-in and fixed-point data type. The Initial value parameter accepts any built-in data type that Simulink supports. For more information, see Data Types Supported by Simulink in the Simulink documentation.

Parameters and Dialog Box

Initial value

Specify the initial value for the input signal.

Sample time

Examples

The following examples show how to use the IC block:

Characteristics

Data Types

Double | Single | Boolean | Base Integer | Fixed-Point | Enumerated

Sample Time

Inherited from driving block

Direct Feedthrough

Yes

Multidimensional Signals

Yes

Variable-Size Signals

No

Zero-Crossing Detection

No

Code Generation

Yes

Introduced before R2006a

Was this topic helpful?