Short Name: VI Icon.Set from File
Requires: Base Development System
Class: VI Methods
To Use: Create a method.
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.
| Data type | Name | Required | Description |
|---|---|---|---|
![]() | Image File | 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. |
The following table lists the characteristics of this method.
| Data type | No return value |
| Available in Run-Time Engine | No |
| Available in Real-Time Operating System | Yes |
| 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 |