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