06-09-2008 10:54 AM
I have a similar problem. My solution, which I've only partially implemented, is to use an index generator (a mixed base counter in this case). There wouldn't be any loops, only class methods for indexing vectors (private class data) of swept variables. Without explicit For Loops the order of sweeping can be easily changed.
Let me know if this might work for you. I hope to get to this within the next few weeks.
David
06-09-2008 11:23 AM - edited 06-09-2008 11:31 AM
06-09-2008 11:30 AM
06-09-2008 11:32 AM
06-09-2008 11:47 AM
A nested loop means that you have a loop, inside a loop, inside a loop.. The innermost loop runs, then goes outwardly..
What you are looking for is a State Machine where you can select which loop will run next. All loops are independant, not nested, in order to do that.
I will create an example for you..
RayR
06-09-2008 11:52 AM
Please disregard my previous.
I'll have to give some thought to how I did that.
Ben
06-09-2008 11:52 AM
06-09-2008 11:59 AM
06-09-2008 12:08 PM
Here's my example...
Now I need to catch up with the other posts 😉
06-09-2008 12:09 PM
What is supposed to be happening in each loop?
cheyne wrote:
Hi,
If the 2 loops running independently, then it means 1 loop will complete before another loop starts. But I am looking for 2 loop nested together where 2 are running at the same time.