LabVIEW Control Design and Simulation Module

EMI_GetInitialDiscreteStates (EMI Function)

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

EMI_GetInitialDiscreteStates (EMI Function)

Owning Class: Discrete States

Requires: Control Design and Simulation Module

Prototype

double* EMI_GetInitialDiscreteStates(emiRef model);

Description

Returns a pointer to the initial discrete states of an external model. Call this function within the EMI_CB_InitializeModel function to initialize the discrete states before simulating the 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.

Return Value

Returns a pointer to the initial discrete states of the model.

Examples

double* initDiscreteStates = EMI_GetInitialDiscreteStates(model);

Related Topics

EMI_CB_InitializeModel
EMI_GetDiscreteStates