LabVIEW Control Design and Simulation Module

EMI_CB_SizeInformation (EMI Function)

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

EMI_CB_SizeInformation (EMI Function)

Owning Class: Callbacks

Requires: Control Design and Simulation Module

Prototype

void EMI_CB_SizeInformation(emiRef model);

Description

Specifies the number of continuous states for an external model, the number of discrete states, or the number of signals of the external model to monitor for zero crossings. Call any of the functions in the Related Topics list from within the EMI_CB_SizeInformation function.

Details

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.

Details

You can require users to enter model configuration parameters to further define the model they want to simulate with the External Model function. You can use these model configuration parameters to determine how many states to allocate within the EMI_CB_SizeInformation function. Users enter model configuration parameters in the Select an External Model Library dialog box. Use the EMI_GetConfigurationParams function to return the model configuration parameters a user enters in the Select an External Model Library dialog box .

Examples

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

Related Topics

EMI_GetConfigurationParams
EMI_SetNumberOfContinuousStates
EMI_SetNumberOfDiscreteStates
EMI_SetNumberOfZeroCrossings

Log in to get a better experience