One other thing, i put the elapsed time function inside the while loop, set a condition of 120 seconds, if true, where should i wire the empty cluster array, outside the while loop?
I think one or both of us misunderstood something. The constant itself can be inside or outside the loop but your local should be inside the loop. That's basic dataflow. When you have something outside the loop like you do, it doesn't get written until the loop finishes.