Hi Charlie,
1. You can create the DAQmx code from your DAQ Assistant by right clicking on the DAQ Assistant and select Generate NI-DAQmx Code. You might still need to modify some of the to your exact application. (You might find context help (Ctrl+H) useful.)
2. You can also create arrays using the Array Palette (in the Functions»Programming Palette). There is a lot in LabVIEW help as well (Help»Search the LabVIEW Help...»Index Tab» array or arrays. You might to particularly look at "arrays, inserting elements programmatically".
Regards,
Hillary E
National Instruments