National Instruments BridgeVIEW 用户手册

下载
页码 455
Chapter 16
Program Design
16-4
© National Instruments Corporation
output that is used as the input to another subVI, try to align the input and 
output connections. This technique simplifies your wiring patterns.
SubVIs with Required Inputs
On the front panel, you can edit required inputs for subVIs by clicking 
the icon pane on the upper-right side of the window and choosing 
Show Connector»This Connection Is. From the submenu, choose 
between the RequiredRecommended, or Optional options. 
The following illustration displays the submenu options.
If you want to return to the icon pane in the front panel, pop up on the 
connector pane and select Show Icon
Good Diagram Style
In general, avoid creating a block diagram that uses more than one or two 
screens of space. If a diagram becomes very large, decide whether you can 
reuse some components of your diagram in other VIs, or whether a section 
of your diagram fits together as a logical component. If so, consider 
dividing your diagram into subVIs.
With forethought and careful planning, it is easier to design diagrams that 
use subVIs to perform specific tasks. Using subVIs helps you manage 
changes and debug your diagrams quickly. You can determine the function 
of a well-structured program after only a brief examination. 
Watch for Common Operations
As you design your programs, you might find that you perform a certain 
operation frequently. Depending on the situation, consider using subVIs or 
loops to perform an action repetitively.