Hello, The two previous posts are excellent solutions for your desired action.
One thing to note, however, is that the use of local or global variables can cause performance issues on a large scale. Every instance of one of these variables will create a copy of the data in memory. If you are trying to optimize your VI performance, you may want to avoid using these two variable types and stick to standard read and write dataflow operations. I hope everything works out for you. Have a great day! Kind Regards, Joe Des Rosier National Instruments