LabVIEW Control Design and Simulation Module

EMI_GetOutput (EMI Function)

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

EMI_GetOutput (EMI Function)

Owning Class: Outputs

Requires: Control Design and Simulation Module

Prototype

double* EMI_GetOutput(emiRef model, unsigned int index);

Description

Returns a pointer to an output of an external model.

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.
index Specifies the index of the output for which you want to return a pointer.

Return Value

Returns a pointer to the output of the model corresponding to the index you specify.

Examples

/* return a pointer to the second output */
double* output = EMI_GetOutput(model, 1);

/* set the third element of the output to 5 */
output[2] = 5.0;

Log in to get a better experience