LabVIEW Control Design and Simulation Module

EMI_IsDiscreteStep (EMI Function)

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

EMI_IsDiscreteStep (EMI Function)

Owning Class: Discrete States

Requires: Control Design and Simulation Module

Prototype

char EMI_IsDiscreteStep(emiRef model);

Description

Checks whether the current time step is a discrete time step. The LabVIEW Control Design and Simulation Module calls the EMI_CB_CalculateDiscreteStates function at every discrete time step.

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 non-zero value if the current time step is a discrete time step. Otherwise, this function returns 0.

Examples

char isDiscreteStep = EMI_IsDiscreteStep(model);

Related Topics

EMI_CB_CalculateDiscreteStates