EMI_AddVectorOutput (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_AddVectorOutput (EMI Function)
Owning Class: Outputs
Requires: Control Design and Simulation Module
Prototype
void EMI_AddVectorOutput(emiRef model, const char* termName, emiFeedthroughType feedthroughType, unsigned int size);
Description
Adds a vector output for an external model. You can call this function only from the EMI_CB_ModelInterface function. LabVIEW stores scalar and vector outputs together in the order in which you add them.
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. |
| termName | Specifies the name of the output. |
| feedthroughType | Specifies whether the output has direct or indirect feedthrough. Use the emiFeedthroughType data type to specify the feedthrough behavior. |
| size | Specifies the number of elements in the output array. |
Examples
void EMI_CB_ModelInterface(emiRef model) {
EMI_AddScalarOutput(model, "First Output", EMI_Feedthrough_Direct);
EMI_AddVectorOutput(model, "Second Output", EMI_Feedthrough_Indirect, 3);
}