Why don't you try to move the data to another array every time the switch is hit. So instead of having one array create 2. One array that is the data you are aquiring and the second array is the data you are storing. When the switch is hit true "true case of the case structure" transfer the data to the 2 array. You can do this with a build array and a shift register in a while loop that is around your acquisition. Hope this helps.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor