ChatDiagram
Control Flow Graph · Traffic Light · Embedded Systems

Traffic Light Controller Control Flow Graph

النوع مخطط انسيابيالمعيار Sugiyama layered DAG + orthogonal routingالمحرّك schematex-flowchartآخر تحديث 10‏/9‏/2026
Traffic Light Controller Control Flow Graph
Drawing preview
الطلب

“Pseudocode for a traffic light controller: initialize, check that the system is powered, turn red on for 10 seconds, green on for 8 seconds, yellow on for 3 seconds, then check power again; end when power is off.”

جرّب إذنAdd a pedestrian crossing phase.Change the green interval to 15 seconds.
ما الذي يتضمنه هذا الرسم

اقرأ القرارات الكامنة وراءه.

01

Whether the system is powered

02

Transitioning to next light after timer expiry

03

Looping back to power check after yellow

Use this control flow graph template for any cyclic embedded controller or state machine with a periodic loop and a shutdown condition.

تصفّح جميع قوالب مخطط انسيابي ←