LabVIEW Control Design and Simulation Module

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.

Examples

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);
}

Related Topics

EMI_AddScalarInput
EMI_CB_ModelInterface

Log in to get a better experience