06-28-2006 10:35 AM
06-28-2006 11:08 AM
You should consider a state machine. There are many advantages to a state machine architecture over a simple sequence/case structure.
Paul
06-28-2006 11:10 AM
But to answer your question you can put the case structure in a loop and pass a boolean using a shift register ans inverting the valoe between itterations.
Paul
06-28-2006 02:41 PM - edited 06-28-2006 02:41 PM
Message Edited by altenbach on 06-28-2006 01:09 PM
06-29-2006 08:05 AM
Thanks for your insightful message.
I am working on fixing the program. In reference to your diagram, where does the wire that leads to the top portion of the multiplication function lead to (as it leads to the left out of the picture). I tried to to connect it to the edge of the sequence frame but the wire returned an error (it needs a source). Thanks!
06-29-2006 08:32 AM
06-30-2006 02:03 PM
06-30-2006 02:17 PM
Thank you for your help.
Attached it my newest code. I decreased the number of loops from four to two. The program works fine after the first running (I'm not sure why that is). I need to somehow change the left starting position to start at the value where the last loop left off (to make the back and forth motion more fluid). I am not sure how to do this.
Thanks!
06-30-2006 02:55 PM
07-05-2006 01:55 PM
Lynn,
I do not know how to put the position into a shift register.because I need the left position for the first iteration to be a set value of zero. The position in the remaining iterations will depend on the position in the end of the previous iteration.
How would a state machine be different from what I have done?
Thank you!