IC
Set the initial value of the signal.
Description
The IC (Initial Condition) block sets the initial condition of the signal on its input port, such as the signal value at the time you start the simulation . To do this, the block outputs the specified initial condition when you start the simulation, regardless of the actual value of the input signal. The block then outputs the actual value of the input signal.
The IC block is useful for providing an initial assumption for algebraic state variables in a loop.
Behaviour for non-zero calculation step offset
If the IC block has a non-zero calculation step offset , the IC block outputs its initial value at time:
,
where:
-
- is the smallest integer such that .
That is, the IC block outputs its initial value when first executing blocks with a calculation step , which may be after .
Ports
Input
Port_1 - input signal
scalar
| vector
| matrix
Input signal as a scalar, vector or matrix. The block sets the initial condition of this signal to the Initial value parameter, the value of which is set by you.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, UInt8
, UInt16
, UInt32
, UInt64
, Bool
.
Parameters
Initial value - initial value
1.0 (by default)
| actual final scalar, vector or matrix
Set the initial value of the input signal as a valid finite scalar, vector or matrix. The value must be a scalar or have the same dimensions as the input signal.
Block parameter |
|
Values |
|
By default |
|