It is usually better to start a new thread than to attach to an old thread which is only weakly linked to your question.
I did not fully understand your question. I have not used your language for many years.
Your VI shows several issues often encountered by persons new to LabVIEW. The use of the stacked sequence structure is discouraged. For your program dataflow is sufficient. Also avoid local variables when wires will work. The for loop and formula node are not needed. Many of the mathematical functions can be used directly with arrays. See attached modifications of your program.
Lynn