03-20-2007 07:03 PM - edited 03-20-2007 07:03 PM
Message Edited by ceties on 03-20-2007 07:06 PM
03-21-2007 03:06 PM - edited 03-21-2007 03:06 PM
Hello Cetis,
Thank you for your question!
1. If you need to stop a process at any time, it is better to implement a while loop with a stop button as opposed to a for loop. You can still keep track of the number of iteration and stop the loop when you reach a certain count number.
2. To go back to the same piece of code in your program as many times as you want, you need to implement that piece of code as one of the states of a state machine. You mentioned that you want to have that code run in a third loop. This means that you have to create one more state machine and put your code there. It was not very clear whether the third loop is dependent on any data from the other two loops or it will run completely independent. In either case make the appropriate adjustments.
Hope this helps!
Message Edited by Kalin T on 03-21-2007 03:08 PM
03-21-2007 03:28 PM
03-22-2007 05:22 AM