01-19-2007 02:06 PM
01-19-2007 02:19 PM
Yes, a while loop nested in a for loop will have to run to completion before the for loop goes to the next iteration. Everything contained inside a block of code (loop, sequence frame, event structure, etc.) will have to execute before that block exits.
01-19-2007 03:30 PM
12-27-2013 08:12 AM
I have a case as an inner while loop will not execute properly. The dataflow is not behaving as I thought it would. The inner while loop with the event structure only initializes and doesnt execute properly. I am trying to create an program that reads the data from the main loop and sends it to another loop that has an event structure that will write a new line (ie new part) into a spread sheet.
12-27-2013 08:32 AM - edited 12-27-2013 08:33 AM
12-27-2013 08:53 AM
My appologies. PROBLEM SOLVED! I dont mean to waste your time. The attached file named 12.27.13 is the file I intended to attach. I was trying to transmit data to a nested while loop. It was a nightmare being new to this type of programming. I tried using notifiers and a Master slave architecture but neither seemed to communicate propperly (im sure it was my doing) It tried miving the contentnts of the inner while loop to the outer, this time I initialized the contents outside the while loop. This allowed for propper data flow. it allowed for propper dataflow.
The file 12.27.13 has the nested loop issue.
THe file "test" shows the working copy and combined while loops.
Thanks
Hope this helps for anyone who read in future.
12-27-2013 09:52 AM
Here is the prooper file for the above
12-27-2013 10:24 AM
SInce the number of iterations for the outer while loop is known from the start, a FOR loop would be correct instead.