Your code is an absolute mess and makes no sense whatsoever. (see also).
For example you are constantly initializing size=1 arrays, index out a nonexisting element, and then search for it. This is circular nonsense. Converting a size=1 1D array into a matrix does not really do anything useful. What's up with all the local variables? Why all these stacked sequence structures? If you use latch action on "start" and "init", you would not need to reset the value in the event using locals. Why is there no stop button and associated event?
I would strongly recommend some basic LabVIEW tutorials before you proceed any further.
Can you show us some typical data from the "read buffer"? Maybe if we could see some raw data, things would make more sense and we can possibly help you. Thanks!