Jim Q wrote:
This just shows the wiring pattern for the Event Structure.
(There is also the problem that you write to the serial when pressing stop. This should be bypassed.)
You should really rethink your programming approach. Your code is factors too complex for what it does and you have all these string diagram constants in different event cases. This means in order to find a bug you need to endlessly flip through the cases. All these scattered diagram constants make it easy for minor typos to go unnoticed.
A radiobutton control offers all the features you need in a single wire! Use an array of string constants to easily see all of them at once when editing the program.
If you color the radiobuttons nicely (e.g. green for ON), you don't even need the booleans.
It is really important to streamline the details of the code such that the complexity is still manageable in a bigger program. It makes a difference if you have seven or two event cases, eight or three output tunnels, etc.. 🙂
Here's what I probably would do. You can easily disable autosizing on the radiobutton control and arrange the buttons as before, you'll even get the frame for free. 😉