Flowchart Examples In the following examples, we give the graphics and then the generated code for the graphics. Simple Flowchart Find/Merge Logic Switch Control void cgDo_USE_SWITCH_CTRL() { switch(DI + 1) { case 3: if ((DI < 3)) { switch(DI * 2) { case 4: DI = 43; break; default: DI = 87; break; } DI = 4; } else { DI = 455; } break; case 5: { switch(COLOR) { case BLACK: DI = 5; break; case BLUE: DI = 65; break; case RED: DI = 99; break; default: break; } } DI = 34; break; default: if (EV) { GENERATE_EVENT(EV); } else { SetRelAlarm(EV_ALARM, 11, 0); } break; } }
In the following examples, we give the graphics and then the generated code for the graphics.