LabVIEW Control Design and Simulation Module

EMI_GetInitialContinuousStates (EMI Function)

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

EMI_GetInitialContinuousStates (EMI Function)

Owning Class: Continuous States

Requires: Control Design and Simulation Module

Prototype

double* EMI_GetInitialContinuousStates(emiRef model);

Description

Returns a pointer to the initial continuous states of an external model. Call this 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 initial continuous states of the model.

Examples

double* initContStates = EMI_GetInitialContinuousStates(model);

Related Topics

EMI_CB_InitializeModel
EMI_GetContinuousStates

Log in to get a better experience