LabVIEW Control Design and Simulation Module

EMI_GetNumberOfDiscreteStates (EMI Function)

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

EMI_GetNumberOfDiscreteStates (EMI Function)

Owning Class: Discrete States

Requires: Control Design and Simulation Module

Prototype

unsigned int EMI_GetNumberOfDiscreteStates(emiRef model);

Description

Returns the number of discrete states 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.

Return Value

Returns the number of discrete states of the model.

Examples

unsigned int numDiscStates = EMI_GetNumberOfDiscreteStates(model);

Related Topics

EMI_SetNumberOfDiscreteStates