User | Kudos |
---|---|
5 | |
3 | |
2 | |
2 | |
2 |
Local variable for case structure
I do my best to use state machines and consumer-producer structures using queues that go into case structures for programming my applications. One of the problems I have is it is necessary to make a separate control for the various inputs that go the case structure. This situation is relatively friendly to making new cases (just edit the type def of the control and then got to the case structure and "add case for every value"). However, his takes two steps, is complicated, and is not intuitive - i.e. when I try to teach this to anyone else, it takes some time for them to appreciate how powerful it is.
Worse, however, is that it is very unfriendly when I want to remove cases and change the flow of the program, because I have to remove the same cases in a long list of both the control and the case structure.
I suggest a new way to do this - allow the case structure to "create a constant" in the wiring diagram that is linked to the case structure, so whenever the case structure is modified, any constants that were created from it are also updated. This would make creating state machines and consumer-producer programs much much simpler. Since the only cases that need to exist are those that are in the case structure, then it is a one-touch modification to add/subtract cases.
Please do this quickly, I am getting very tired of having to constantly open the "type def". It is way too much work and really slows down development!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 5 kudos within 5 years after posting will be automatically declined.