since the DSD file is nothing more than a text file, I wrote the info needed in the DSD file to a text file. I wrote the header and footer, which (if I remember correctly) are always the same in one portion of the routine and then I wrote all of the plotting info for each tab in a separate area of the routine. It gets over-written each time I plot.