EMI_IsInitialStep (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_IsInitialStep (EMI Function)
Owning Class: Simulation Information
Requires: Control Design and Simulation Module
Prototype
char EMI_IsInitialStep(emiRef model);
Description
Checks whether the current time step of the simulation is the initial time step.
Inputs
| Name | Description |
|---|---|
| model | Specifies a reference to the external model. Use this reference as an input to other EMI functions. Do not modify model directly. |
Return Value
Returns a non-zero value if the current time step of the simulation is the initial time step. Otherwise, this function returns 0.
Examples
char isInitStep = EMI_IsInitialStep(model);