I have an array of data received from my NI DAQ board, and would like to write the data to spreadsheet with the first column being the sample number (e.g., indexing). I have too much data to initialize and create an index array each time I want to save, nor do I want to load a special index spreadsheet to serve as the first column. What is the most efficient way to insert the sample number as the first column given an array of data, without using a while loop?
Example
Sample No. Data 1 Data 2 Data 3
1 # # #
2 # # #
3 # # #
.
.
.