VaBuffer Data Capture Example

First of all, I don't understand if this code would compile at all. An assignment like 

 RxData := b;
should certainly fail. I see your array starts from index 1, i starts from index 0. If your array starts from index 1 you should set the first byte in RxData[1]