LabVIEW Control Design and Simulation Module

EMI_SetNumberOfDiscreteStates (EMI Function)

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

EMI_SetNumberOfDiscreteStates (EMI Function)

Owning Class: Discrete States

Requires: Control Design and Simulation Module

Prototype

void EMI_SetNumberOfDiscreteStates(emiRef model, unsigned int num);

Description

Specifies the number of discrete states for an external model. You can call this function only within the EMI_CB_SizeInformation function.

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.
num Specifies the number of discrete states for the model.

Examples

void EMI_CB_SizeInformation(emiRef model) {
   EMI_SetNumberOfDiscreteStates(model, 2);
}

Related Topics

EMI_CB_SizeInformation
EMI_GetNumberOfDiscreteStates