I used the following program to generate analog output voltage from the sampled values given in an .csv file for one channel. I want this program to work for 16 channel generation in NI9264. I am not able to figure out the exact way to extend it. Each column will have the sampled values for each of 16 channels, that is we will have 16 columns in the final .csv file. The sampling rate will be provided by the user. Please help me find a solution. Thank you.