EMI_GetDiscretePeriod (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_GetDiscretePeriod (EMI Function)
Owning Class: Discrete States
Requires: Control Design and Simulation Module
Prototype
double EMI_GetDiscretePeriod(emiRef model);
Description
Returns the sample period of an external model.
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 the sample period, in seconds, of the model. If the model is non-discrete, this function returns 0.
Examples
double period = EMI_GetDiscretePeriod(model);
double skew = EMI_GetDiscreteSkew(model);