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.