Using SubVIs in Host VIs (FPGA Interface)

LabView FPGA Interface

Using SubVIs in Host VIs (FPGA Interface)

You can use subVIs in host VIs that communicate with FPGA VIs or bitfiles on FPGA targets. However, if you change the configuration of the Open FPGA VI Reference function or the Up Cast function, LabVIEW does not propagate the changes to the subsequent subVIs in the data flow unless you bind the reference output of the function to a type definition.

Complete the following steps to bind the reference output of the Open FPGA VI Reference function to a type definition.

  1. Right-click the Open FPGA VI Reference function on the host VI block diagram and select Configure Open FPGA VI Reference from the shortcut menu.
  2. Place a checkmark in the Bind FPGA host reference to type definition checkbox. The Save As dialog box appears.
  3. Type a name for a new type definition in the File name text box or navigate to an existing type definition in the Save As dialog box. If you type a name for the type definition in the File name text box, LabVIEW creates the type definition for you.
  4. Click the Save button to close the Save As dialog box.
  5. Click the OK button to close the Configure Open FPGA VI Reference dialog box.

Complete the following steps to bind the reference output of the Up Cast function to a type definition.

  1. Right-click the Up Cast function on the host VI block diagram and select Bind Reference Output to Type Definition from the shortcut menu. The Save As dialog box appears.
  2. Type a name for a new type definition in the File name text box or navigate to an existing type definition in the Save As dialog box. If you type a name for the type definition in the File name text box, LabVIEW creates the type definition for you.
  3. Click the Save button.

LabVIEW now automatically updates the type definition you created whenever changes to the Open FPGA VI Reference function or the FPGA VI necessitate changes to the type definition. LabVIEW also propagates these changes to any subVIs that use this type definition. This propagation allows the subVIs to remain consistent with the Open FPGA VI Reference function or Up Cast function.

If you do not bind the output of the Open FPGA VI Reference or Up Cast functions to a type definition and you make a change to the configuration of either of these functions, you must make the same change in any subVIs that use the reference output. Use the Configure FPGA VI Reference dialog box to update the reference.