Using a SubVI to Print Data from a Higher Level VI

You might want to programmatically print a VI only if the user clicks a button or if some condition occurs, such as a test failure. You also might want more control over the format for the printout, or you might want to print only a subset of the controls. In these cases, you can use a subVI that is set to print at completion.

Complete the following steps to use a subVI to print data from a higher level VI.

  1. Create a subVI.
  2. Format the front panel the way you want LabVIEW to print it.
  3. Select Operate»Print at Completion in the subVI.
  4. When you want to print, call the subVI and wire the data you want to print to the subVI.