EMI_AddVectorInput (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_AddVectorInput (EMI Function)
Owning Class: Inputs
Requires: Control Design and Simulation Module
Prototype
void EMI_AddVectorInput(emiRef model, const char* termName, unsigned int size);
Description
Adds a vector input for an external model. You can call this function only from the EMI_CB_ModelInterface function. LabVIEW stores scalar and vector inputs 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 input. |
| size | Specifies the number of elements in the input array. |
Examples
void EMI_CB_ModelInterface(emiRef model) {
EMI_AddScalarInput(model, "First Input");
EMI_AddVectorInput(model, "Second Input", 3);
}