EMI_SetNumberOfContinuousStates (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_SetNumberOfContinuousStates (EMI Function)
Owning Class: Continuous States
Requires: Control Design and Simulation Module
Prototype
void EMI_SetNumberOfContinuousStates(emiRef model, unsigned int num);
Description
Specifies the number of continuous states for an external model. You can call this function only within the EMI_CB_SizeInformation function.
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. |
| num | Specifies the number of continuous states for the model. |
Examples
void EMI_CB_SizeInformation(emiRef model) {
EMI_SetNumberOfContinuousStates(model, 2);
}