The compiler overwrites the values of controls and indicators in Optimized FPGA VIs depending on how you place the controls and indicators on the connector pane and the diagram. In general, place controls and indicators on the connector pane and diagram to avoid unexpected results.
Optimized FPGA VIs must have at least one control or indicator on the connector pane before you can estimate or call the Optimized FPGA VI from another document. In some situations, such as debugging or testing, you may decide to keep some controls and indicators off the connector pane or diagram to ignore their values or to use default values. The following table details how the compiler processes the values of terminals in an Optimized FPGA VI, when deployed to an FPGA, in relation to the connector pane and diagram.
|Terminal On Connector Pane?||Terminal On Diagram?||Usage||Controls||Indicators|
|Standard execution (recommended)||The VI calling the Optimized FPGA VI sends data through the terminal.||The Optimized FPGA VI sends data through the terminal to the calling VI.|
|Testing and debugging||A terminal displays on the Optimized FPGA node in the calling VI. However, the Optimized FPGA VI ignores the data in the terminal because the terminal is not connected to code on the diagram.||A terminal displays on the Optimized FPGA node in the calling VI. The value of the terminal assumes the default value of the indicator.|
|Testing and debugging||
The control terminal becomes a constant on the diagram. The value of the constant assumes the default value of the control. The following examples show how the compiler changes an array control terminal to an array constant.
The array control terminal on the following diagram is not on the connector pane.
The compiler changes the array control terminal to an array constant.
The compiler removes the indicator terminal and any associated code from the design, as shown in the following image. The following examples show how the compiler removes an indicator terminal that is not on the connector pane.
One of the indicator terminals in the following diagram is not on the connector pane.
The compiler removes that indicator terminal from the diagram.