EMI_SetError (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_SetError (EMI Function)
Owning Class: User Interface
Requires: Control Design and Simulation Module
Prototype
void EMI_SetError(emiRef model, const char* errorText);
Description
Stops the current simulation and returns the error message you specify.
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. |
| errorText | Specifies the error message you want to return when this function stops the current simulation. |
Examples
EMI_SetError(model, "Error message goes here.");