EMI_GetInputSize (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_GetInputSize (EMI Function)
Owning Class: Inputs
Requires: Control Design and Simulation Module
Prototype
unsigned int EMI_GetInputSize(emiRef model, unsigned int index);
Description
Returns the number of elements in an input.
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. |
| index | Specifies the index of the input whose size you want to return. |
Return Value
Returns the number of elements in the input corresponding to the index you specify.
Examples
/* return the size of the second input */
unsigned int inputWidth = EMI_GetInputSize(model, 1);