Save to CSV: The Save to CSV option is used to export data to a CSV file. The output options
should be reviewed before saving, and are explained below. The CSV file will contain a header
line consisting of the labels for each column, followed by lines containing data. The data lines
start with a date stamp, followed by the data. The date will be in the format specified in the Date
Format box, which is explained below. The exported CSV file can be opened using a spreadsheet
program, a text editor, or any other application which can read CSV files. The exported CSV file
may also be read by the DAT in a future session to further modify the data.
Split Output File: Output CSV files may be split by day, which creates a series of output files.
If this option is chosen, file lengths of 1 to 7 days may be selected. The files will be split with the
data in each file starting at the first data point after midnight, regardless of the starting time of
the data. If a length of more than one day is chosen, the first day will be included even if it
contains less than a full day of data. The output files will be indicated by appending an 'S##' to
the file name mask, i.e., if the output file name mask is "MyData", the output files would be
named "MyData S01.csv", "MyData S02.csv" and so on until all data had been saved.
Set Output Template: Subsets of columns may be designated for output in CSV files by using
an output template. An output template is selected by clicking on the 'Set Output Template'
button, which opens a file selection dialog box. The output template functions similarly to the
input template. The user is given the choice to delete previously entered output templates when
selecting a new one.
CSV Delimiter: The control labelled "CSV Delimiter" allows the user to specify the delimiter
used in CSV files. This is useful because some applications use different symbols as the
delimiter in CSV files, despite the name of the format.
Time Delimiter: The control labelled "Time Delimiter" will cause the program to use the CSV
delimiter between the date and time fields in the output CSV file. It is selected by default. If this
box is not checked there will be no delimiter between the date and time fields.
Write Date Starting At: To enable changing the initial date stamp in the output data, select the
checkbox labeled "Write date starting at:" as shown in Figure 5 and then use the standard date
picker to select the initial date stamp. This feature is intended to correct date stamps when they
do not correspond to the actual date the data represents, i.e., when the date on the data
acquisition system is incorrect. This can happen with a hardware in the loop simulation when the
simulation time does not match the clock time of the data acquisition system. The time of day
associated with each datapoint will not be changed. If the data covers multiple days, the date
written will increment appropriately. Note that using this feature will change the date stamp for
all data, and does not select a range of data to save. For example, if a date corresponding to the
second day of data is selected, the full data set will be saved but with the date stamp of each
datapoint modified to be two days later.
6
______________________________________________________________________________________________________
This publication is available free of charge from: https://doi.org/10.6028/NIST.TN.2015