There is an attachment section at the bottom of the post when creating or editing a post. You might want to use that to attach a picture of your code.
None the less I will give a shot with some suggestions without viewing your code.
You should look into using shift registers along with the Insert Into Array.vi to build an array of numbers. A good source of information for shift registers can be found in the <a href=" http://www.yqcomputer.com/
#Stacked_Shift_Registers" target="_blank">For Loop and While Loop Structures</a> help.
Hopefully this helps!!