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.
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.
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.
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.
Frequently asked Labview Interview Questions
Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!
Name | Dates | |
---|---|---|
LabVIEW Training | Apr 01 to Apr 16 | |
LabVIEW Training | Apr 04 to Apr 19 | |
LabVIEW Training | Apr 08 to Apr 23 | |
LabVIEW Training | Apr 11 to Apr 26 |
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.
1 /15
Copyright © 2013 - 2023 MindMajix Technologies