LabVIEW Control Design and Simulation Module

EMI_SetIconPath (EMI Function)

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

EMI_SetIconPath (EMI Function)

Owning Class: User Interface

Requires: Control Design and Simulation Module

Prototype

void EMI_SetIconPath(emiRef model, const char* iconPath);

Description

Specifies a path on disk to the custom icon you want to use for the External Model function that represents an external model. You can use this function to specify an icon stored in a temporary location.

If you do not call this function or if LabVIEW cannot find the icon you specify, the External Model function uses the default icon.

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.
iconPath Specifies the path on disk to the custom icon you want to use.

Examples

void EMI_CB_GetCustomIcon(emiRef model, char *shouldDeleteIcon) {
   /* generate the icon here, if necessary */
   EMI_SetIconPath(model, "C:\\myicon.bmp");
   *shouldDeleteIcon = 0; /* don't delete this icon */
}

Related Topics

EMI_CB_GetCustomIcon

Log in to get a better experience