EMI_GetZeroCrossingResults (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_GetZeroCrossingResults (EMI Function)
Owning Class: Zero Crossings
Requires: Control Design and Simulation Module
Prototype
const emiZeroCrossResult* EMI_GetZeroCrossingResults(emiRef model);
Description
Returns a pointer to the zero-crossing results for an external model. The zero-crossing results can indicate that a zero crossing occurred on a rising or falling signal or that no zero crossing occurred. The emiZeroCrossResult data type specifies the type of zero crossing that occurred.
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 pointer to the zero-crossing results for the model.
Examples
const emiZeroCrossResult* zcResults = EMI_GetZeroCrossingResults(model);