PSC PT Program Generator User Manual

Page 64

Advertising
background image

Creating & Using Nodes

52

PT Program Generator (PPG) v5.0

Figure 31 on page 52

shows the Frames level of a program that contains three

subroutines: one for counting the data collected in a file, one for verifying that
data, and one for displaying the data.

Call

nodes within the program frames

jump to the subroutines as needed.

Subroutine nodes can be placed anywhere in the application. However, to
make subroutine management easier, most applications will locate subroutines
either at the top-most frame level or in a separate frame that contains all appli-
cation subroutines.

Figure 31. Subroutines in a PPG program

Creating subroutines is the same as creating frames. Complete the following
steps:

1. Select

Create > Subroutine

from the menubar. A new subroutine

opens in the lower right corner of the frame. The new subroutine is
assigned a default name.

2342.book Page 52 Thursday, July 22, 2004 8:35 AM

Advertising