LabVIEW Control Design and Simulation Module

EMI_GetContinuousStates (EMI Function)

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

EMI_GetContinuousStates (EMI Function)

Owning Class: Continuous States

Requires: Control Design and Simulation Module

Prototype

const double* EMI_GetContinuousStates(emiRef model);

Description

Returns a pointer to the continuous states of an external model. Use the EMI_GetInitialContinuousStates function within the EMI_CB_InitializeModel function to initialize the continuous states before simulating the model. During the simulation, do not modify the continuous states directly. Instead, use the EMI_ResetContinuousState function within the EMI_CB_CalculateResetStates function to reset the values of the continuous states.

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.

Return Value

Returns a pointer to the continuous states of the model.

Examples

const double* contStates = EMI_GetContinuousStates(model);

Related Topics

EMI_CB_InitializeModel
EMI_GetInitialContinuousStates
EMI_ResetContinuousState

Log in to get a better experience