Hi,
Sorry the previous attachment was not opening. I have attached the another VI.
The program actually generates random number ( using random number under numeric function palette) inside the for loop. The loop executes for the loop count times that can be configured by the user. Now each time the loop is executed one random number between 0 to 1 is generated. This random number is then converted to an 1-D array and again a waveform is built using the timestamp generated for each random number. The resulting waveform is plotted in the waveform chart. The array is again formatted in to spreadsheet string using Array to Spreadsheet string function for storing it in the excel file. This timestamp generated using Get Date/Time is seconds function is formatted into getting date string and time string. Now the data string and the date & time string are concatenated and written into the file. The file is opened before all this operation and closed after the loop execution is over. Therefore, each random number, the date and time at which it is generated are stored in the excel file. Please find the attached zip file for the VI.
Regards,
Bharathi.