Printing Programmatically

You can print a front panel programmatically using the Print Panel VI located on the Functions»Application Control palette. You can call this VI from other VIs and print the front panel at any time during execution.

Complete the following steps to print your front panel programmatically.

  1. Select the Print Panel VI on the Functions»Application Control palette and place it on the block diagram.
  2. Use the Wiring tool to right-click the VI name input and select Create»Constant from the shortcut menu.
  3. Enter the name of the VI whose front panel you want to print in the constant.
  4. Run the VI.

You also can use the Print Panel To Printer method to print the front panel to a printer programmatically.