Designing Source VIs

The source VI of an Express VI contains the underlying code for the Express VI. The source VI serves as a wrapper around a subVI that determines how the Express VI behaves. The source VI also determines the connector pane and icon of the Express VI. After you create a new Express VI with the Express VI Creator wizard, build the source VI to specify how the Express VI behaves and to design the connector pane and icon.

Building the Source VI Front Panel

Build the front panel of the source VI to include all objects needed to pass information to the subVI. This front panel is not exposed to the user. If you created the Express VI from an existing VI, the front panel of the source VI contains all the controls and indicators from the original VI that you set as expandable. If you created the Express VI from another Express VI, the front panel of the source VI is identical to that of the original Express VI. If you created the Express VI from a blank VI, the front panel of the source VI is blank, and you must build it from scratch.

The following list describes some recommendations to consider when building the front panel of the source VI for an Express VI.

Building the Source VI Block Diagram

After creating the front panel for the source VI, you can modify the block diagram to specify how the Express VI behaves. If you created the Express VI from an existing VI, the block diagram of the source VI contains a subVI identical to the original VI. If you created the Express VI from another Express VI, the block diagram of the source VI is identical to that of the original Express VI. If you created the Express VI from a blank VI, the block diagram of the source VI contains a template subVI. Build the subVI to perform all the intended functionality of the Express VI, and design the connector pane and a unique icon for the subVI. The connector pane must include all the inputs and outputs you want to configure programmatically through the Express VI.

The following list describes some recommendations to consider when building the subVI for an Express VI.

The block diagram of the source VI must include a control or constant for each configurable or expandable parameter in the Express VI. If a parameter is both configurable and expandable, or if a parameter is expandable but not configurable, the block diagram of the source VI must contain a corresponding control or indicator for that parameter. If a parameter is configurable but not expandable, the block diagram of the source VI must contain a corresponding constant for that parameter.

Designing the Express VI Connector Pane and Icon

After building the front panel and block diagram of the source VI, design the connector pane and a unique icon for the source VI. You must include all expandable terminals on the connector pane of the source VI. You do not need to include configurable parameters on the connector pane. The connector pane and icon of the source VI correspond to the connector pane and icon of the Express VI.