On the FPGA you have to work with fixed sized arrays. The context menu of a constant array (with your initial values) gives you the SetSize option.
In terms of resource usage you should avoid control communication to the host.
High Performance FPGA Developers Guide