EMI_SetNumberOfZeroCrossings (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_SetNumberOfZeroCrossings (EMI Function)
Owning Class: Zero Crossings
Requires: Control Design and Simulation Module
Prototype
void EMI_SetNumberOfZeroCrossings(emiRef model, unsigned int num);
Description
Specifies the number of signals of an external model to monitor for zero crossings. You can call this function only within the EMI_CB_SizeInformation function.
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 signals of the model to monitor for zero crossings. |
Examples
void EMI_CB_SizeInformation(emiRef model) {
EMI_SetNumberOfZeroCrossings(model, 2);
}