122-28176 Parallax Inc, 122-28176 Datasheet - Page 26

GUIDE STUDENT PROCESS CONTROL

122-28176

Manufacturer Part Number
122-28176
Description
GUIDE STUDENT PROCESS CONTROL
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-28176

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Page 16 · Process Control
ACTIVITY #4: PREDEFINED PROCESSES WITH SUBROUTINES
Parts Required
Same as Activity #2
As more operations are added to the flowchart, it can become quite large and complex.
The same holds true for programs.
In the previous programs, all operations were
performed within the main routine, and the same held true in the flowchart.
As the process increases in size and complexity, it is best to break it down into more
manageable pieces. By looking at the main loop of the flowchart or the main routine of
the code, it is easy to see the overall operation of the program without being
overwhelmed by the amount of code. Finally, analyzing or troubleshooting is much
easier if it can be performed without having to flip between several pages or continually
scroll up or down to different sections of the program. For example, consider the
flowchart in Figure 1-9.
Looking at the main loop, it is easy to see the overall operation of the process. The pre-
defined processes take the place of specialized code to perform these operations. Each
pre-defined process has its own flowchart to define its operation. How will the process
operate based on this flowchart? What occurs if the light level is low?

Related parts for 122-28176