EMI_CB_GetCustomIcon (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_CB_GetCustomIcon (EMI Function)
Owning Class: Callbacks
Requires: Control Design and Simulation Module
Prototype
void EMI_CB_GetCustomIcon(emiRef model, char *shouldDeleteIcon);
Description
Specifies a custom icon for the External Model function that represents an external model. You can use a .bmp, .png, or .jpg file for the custom icon. This function also specifies whether to delete the icon from disk after this function executes, for example if the icon is in a temporary location. Use the EMI_SetIconPath function to specify the file location of the icon you want to use.
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. |
Outputs
| Name | Description |
|---|---|
| shouldDeleteIcon | Returns a non-zero value if the LabVIEW Control Design and Simulation Module deletes the icon from disk after reading the file. |
Examples
void EMI_CB_GetCustomIcon(emiRef model, char *shouldDeleteIcon) {
/* generate a custom icon here, if necessary */
EMI_SetIconPath("C:\\myicon.bmp");
*shouldDeleteIcon = 0; /* do not delete the icon */
}