The first step is to create the front panel and block diagram of a VI as shown in Figure 3.4. Consider a VI slope (m).vi to find the slope m given the coordinates y1, y2, x1, x2 of a line. The slope m = (y2 – y1)/(x2 – x1).?
I Icon And Connector Pane
After you build a VI, build the icon and the connector pane so that you can use the VI as a subVI. The icon and connector pane correspond to the function prototype in text-based programming languages. Every VI displays an icon in the upper-right corner of the front panel and block diagram windows. An icon is a graphical representation of a VI. If you use a VI as a subVI, then the icon identifies the subVI on the block diagram of the VI.
The default icon can be changed to a custom icon which contains text, images or a combination of both. Figure 3.5 shows the custom icon and connector pane created for the VI to find the slope of a given line. The icon for the slope VI contains text and images while the connector has four inputs (y1, y2, x1, x2) and one output (m). To create a subVI, you need to build an icon and a connector pane.
Free Demo for Corporate & Online Trainings.