If I use shift registers, I have to say how many elements I want. I could use an Array and a local variable and resize the Array all the time, but that is somehow not such a good idea.
As nobody had an answer I tried something out myself (see atached example). It is a dynamically resizable Buffer not using locals. I also used information of the example FIFO_WO_LocalVar2_6i.vi. Thanks!