LabVIEW Control Design and Simulation Module

EMI_AddScalarInput (EMI Function)

  • Updated2023-03-14
  • 1 minute(s) read

EMI_AddScalarInput (EMI Function)

Owning Class: Inputs

Requires: Control Design and Simulation Module

Prototype

void EMI_AddScalarInput(emiRef model, const char* termName);

Description

Adds a scalar 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.

Examples

void EMI_CB_ModelInterface(emiRef model) {
   EMI_AddScalarInput(model, "First Input");
   EMI_AddVectorInput(model, "Second Input", 3);
}

Related Topics

EMI_AddVectorInput
EMI_CB_ModelInterface

Log in to get a better experience