EMI_RequestCallbackToResetStates (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_RequestCallbackToResetStates (EMI Function)
Owning Class: Continuous States
Requires: Control Design and Simulation Module
Prototype
void EMI_RequestCallbackToResetStates(emiRef model);
Description
Requests a call to the EMI_CB_CalculateResetStates function. You can use this function to request a call to the EMI_CB_CalculateResetStates function after the current time step even if a zero crossing has not occurred.
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. |
Examples
/* calculate reset values at the end of the current time step */
EMI_RequestCallbackToResetStates(model);