Sets the image of a VI icon from a file. LabVIEW creates a user layer called VI Icon for the image and deletes any other existing icon information from the Icon Editor dialog box.

You also can use the VI Icon:Set from Image Data method to set a VI icon from image data you specify.

Parameters

Name Data type Required Description
Image File cpath.png Yes

Absolute path to the image you want to use for the VI icon. Valid image formats include PNG, JPEG, GIF, and BMP. The BMP format is valid only on Windows.

Remarks

The following table lists the characteristics of this method.

Short Name VI Icon.Set from File
Data type No return value
Available in Run-Time Engine No
Available in Real-Time Operating System No
Settable when the VI is running Yes
Loads the front panel into memory Yes
Need to authenticate before use Yes
Loads the block diagram into memory No
Remote access allowed Yes
Must wait until user interface is idle No
Available with control VIs Yes
Available with global VIs Yes
Available with strict type definitions No
Available with polymorphic VIs Yes