I need to create reports on the data stored in the Historical Trends Citadel Database from my LabVIEW Datalogging and Supervisory Control application.
I need this data in a comma separated value format for legacy reporting purposes.
This VI can be used in any DSC application that uses historical trends to save the trend data to a delimeted file of you choice, or even to an external SQL database if the save to spreadsheet file is replaced with databse acess code.

Block Diagram code in LabVIEW 2010 format
N.B The attached code was saved in LabVIEW 8.6.1 and the VI Snippet was created in LabVIEW 2010