The loop in the example I sent is only there to run the example, you need to use your main loop the way I've done in the example. The loop is only used to provide the shift registers to hold the presized array.
You will of course also need to initialize the array to the number of elements you will generate, not use the numbers I included in the example.
In the example I set the start time and delta t once outside the loop (do not set the x min and max, do as shown in the example, set the x.offset and multiplier), you can do this inside the loop and with the start time and delta t of your choice.
By initializing the array to the necessary size first and then use the resize function things will work smoothly and use little me
mory. Never build arrays using the build function unless it's very small arrays and/or you do it seldom...In a loop where you need to put in new elements on each iteration working with a presized array is a necessity.
I'm quite sure the example does what you intend to do, you just need to see what the core technique is and look past the things that are there just for the example.
If not though, try taking a picture of the code or upload it (include sub-VIs by saving with options -> development distribution) and I'll have a closer look.