Home  >  Blog  >   Labview  > 

Create an Icon in Modular Programming - LabVIEW

Program modularity in LabVIEW refers to the division of code into smaller units known as subVIs. Similar to a subroutine in a text-based programming language, a subVI is a subclass. Learn how to construct a subVI, adjust its icon display, and build and configure the connection pane in this article.

Rating: 4
  
 
2939
  1. Share:
Labview Articles

Creating A Icon

The default icon of a VI contains a number that indicates how many new VIs you have opened since launching LabVIEW. You can create custom icons to replace the default icon by completing the following steps:

If you would like to Enrich your career with an Android certified professional, then visit Mindmajix - A Global online training platform: “LabVIEW training” Course.This course will help you to achieve excellence in this domain.

1. Right-clicking the icon in the upper-right corner of the front panel or block diagram and select Edit Icon from the shortcut menu to display the Icon Editor dialog box as shown in Figure 3.6.

modular programming in labview

1. Double-click the hatched box which will select the entire icon. Delete the selected portion.

2. Double-click the rectangular box which will create a border for the icon.

3. Use the line/pencil tool to draw.

4. Double-click the Edit Text tool ‘A’ to edit the required text.

5. Choose the Text Tool Font to edit font, font size, color and alignment of the text.

6. Use the Select Color tool to choose the background color of the icon.

7. Use the Fill With Color tool to change the background color of the icon.

8. Click OK to save the icon.

Check Out LabVIEW Tutorials

Using the tools on the icon editor, Figure 3.7 shows the custom Icon created for the slope VI. Use the Edit menu to cut, copy and paste images from and to the icon. When you select a portion of the icon and paste an image, LabVIEW resizes the image to fit into the selection area. You also can drag a graphic from anywhere in the file system and place it in the upper-right corner of the front panel. LabVIEW converts the graphic to a 32×32 pixel icon. Depending on the type of monitor you use, you can design a separate icon for monochrome, 16-color and 256-color mode. Use the Copy from option on the right side of the Icon Editor dialog box to copy from a color icon to a black-and-white icon and vice versa. After you select a Copy from option, click the OK button to complete the change. Figure 3.7 shows the custom icon created for the VI which finds the slope of a line.
modular programming in labview

Frequently asked Labview Interview Questions

 

Join our newsletter
inbox

Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!

Course Schedule
NameDates
LabVIEW TrainingDec 06 to Dec 21
LabVIEW TrainingDec 10 to Dec 25
LabVIEW TrainingDec 13 to Dec 28
LabVIEW TrainingDec 17 to Jan 01
Last updated: 04 December 2022
About Author
Ruchitha Geebu

I am Ruchitha, working as a content writer for MindMajix technologies. My writings focus on the latest technical software, tutorials, and innovations. I am also into research about AI and Neuromarketing. I am a media post-graduate from BCU – Birmingham, UK. Before, my writings focused on business articles on digital marketing and social media. You can connect with me on LinkedIn.

Recommended Courses

1 /15