Discrete States (EMI Category)
- Updated2023-03-14
- 1 minute(s) read
Requires: Control Design and Simulation Module
Use members of the Discrete States category to modify discrete states of an external model.
| Function | Description |
|---|---|
| EMI_GetDiscretePeriod | Returns the sample period of an external model. |
| EMI_GetDiscreteSkew | Returns the sample skew of an external model. |
| EMI_GetDiscreteStates | Returns a pointer to the discrete states, x[k], of an external model. |
| EMI_GetInitialDiscreteStates | Returns a pointer to the initial discrete states of an external model. |
| EMI_GetNextDiscreteStates | Returns a pointer to the next discrete states, x[k+1], of an external model. |
| EMI_GetNumberOfDiscreteStates | Returns the number of discrete states of an external model. |
| EMI_IsDiscreteStep | Checks whether the current time step is a discrete time step. |
| EMI_SetDiscretePeriod | Specifies the sample period, or the length of the discrete time step, for an external model. |
| EMI_SetDiscreteSkew | Specifies the sample skew, or the length of time by which you want to offset the sample period, for an external model. |
| EMI_SetNumberOfDiscreteStates | Specifies the number of discrete states for an external model. |