Program your own Finite State Machine using a SPLat Controller for only $29.00.
The EC1 "EasyOne", a 32-bit fully featured SPLat Controller with USB and true multi-tasking is a easy way to learn and a cheap way to build your project.
State Diagrams 2, a more elaborate wait loop
In figure 2 I have added testing of a second input, so we now have I/P1 and I/P2. The program will sit looping around the two decision boxes until one or the other input comes on. The letters 'A' and 'B' in "point down" triangles are what we call "connectors". Normally they will connect to a similar symbol elsewhere on the page, and serve simply to reduce the number of long connecting lines.
So, this diagram is read as follows: "Sit and wait for either input 1 or input 2. If input 1 comes on first, go to 'A' and provide whatever response is programmed there. If input 2 comes on, go to 'B' and provide whatever response is programmed there."
Next I'll show you how to simplify 2, 3 or more decision diamonds into one simple symbol.