07-22-2016 02:50 AM - edited 07-22-2016 02:54 AM
07-22-2016 03:06 AM - edited 07-22-2016 08:18 AM
Again, STOP POSTING PICTURES! Attach your VIs!
If you want to ad elements to an array, use "insert into array" and if you wan to append to an array, use "built array".. (and it is a complete mystery why your are bundling a cluster and then immediately unbunding the same elements again. Just use the two scalars and leave the cluster operations out of it!)
Your code is peppered with race conditions due to the blatant overuse of local variables, so even if you would fix the array operations, you might get unanticipated surprises down the line.