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