LabVIEW Control Design and Simulation Module

EMI_AddScalarOutput (EMI Function)

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

EMI_AddScalarOutput (EMI Function)

Owning Class: Outputs

Requires: Control Design and Simulation Module

Prototype

void EMI_AddScalarOutput(emiRef model, const char* termName, emiFeedthroughType feedthroughType);

Description

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

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 output.
feedthroughType Specifies whether the output has direct or indirect feedthrough. Use the emiFeedthroughType data type to specify the feedthrough behavior.

Examples

void EMI_CB_ModelInterface(emiRef model) {
   EMI_AddScalarOutput(model, "First Output", EMI_Feedthrough_Direct);
   EMI_AddVectorOutput(model, "Second Output", EMI_Feedthrough_Indirect, 3);
}

Related Topics

EMI_AddVectorOutput
EMI_CB_ModelInterface
emiFeedthroughType

Log in to get a better experience