EMI_GetOutputFeedthrough (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_GetOutputFeedthrough (EMI Function)
Owning Class: Outputs
Requires: Control Design and Simulation Module
Prototype
emiFeedthroughType EMI_GetOutputFeedthrough(emiRef model, unsigned int index);
Description
Returns the feedthrough behavior of an output. An output can have direct or indirect feedthrough. Use the emiFeedthroughType data type to specify the feedthrough behavior of an output. This function returns the feedthrough behavior as an emiFeedthroughType data type.
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 feedthrough behavior you want to return. |
Return Value
Returns the feedthrough behavior of the output corresponding to the index you specify.
Examples
/* return the feedthrough behavior of the first output */
emiFeedthroughType feedthrough = EMI_GetOutputFeedthrough(model, 0);