09-15-2012 12:16 AM
can we change the "case selector" value in case structure during its execution???
09-15-2012 12:40 AM
Sure you can...create a state machine. On the front panel select your "case selector" control and edit it by making a type def. Detach your wire from the case structure to the "case selector". Now put a while loop around your case structure. On the outside of your while loop connect your "case selector" (now a type def control) to the left side of your while loop. Right click the tunnel where it enters and change it to a shift register. Now wire this left shift register to your case structure. Copy your type def control and turn that into a constant. In each case determine what the next case should be and put this constant in the appropriate case and wire it out to the right side shift register. Now you just need to determine a method to stop your while loop. Maybe a stop case?
09-15-2012 01:08 AM
There seems to be several parallel thread. Let's keep it all in one place from now on.