LabVIEW Control Design and Simulation Module

EMI_SetDiscretePeriod (EMI Function)

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

EMI_SetDiscretePeriod (EMI Function)

Owning Class: Discrete States

Requires: Control Design and Simulation Module

Prototype

void EMI_SetDiscretePeriod(emiRef model, double period);

Description

Specifies the sample period, or the length of the discrete time step, for an external model. The LabVIEW Control Design and Simulation Module uses the sample period and the sample skew you specify with the EMI_SetDiscreteSkew function to determine when to call the EMI_CB_CalculateDiscreteStates 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.
period Specifies the sample period, in seconds, of the model.

Examples

EMI_SetDiscretePeriod(model, 1.0);
EMI_SetDiscreteSkew(model, 0.5);

Related Topics

EMI_CB_CalculateDiscreteStates
EMI_SetDiscreteSkew

Log in to get a better experience