From the looks of your code it appears that you would do well to spend some time with the Getting Started with LabVIEW tutorials.
-The use of stacked sequence structures is discouraged because it obscures code, is difficult to modify or extend, and often results in wires running backwards.
-Similarly local variables should not be used to pass data around - use wires. Locals are prone to race conditions, generate extra copies of the data, and are slower than wires.
-Use autoindexing to get the data from your array. You code will be substantially simplified.
There are Integration VIs in the Mathematics >> Integration & Differentiation palette which may be helpful. I am not sure these are in the Student Edition, but I think they may be.
Lynn