Data Loading
Load a single time series file
// Time series file and settings located in a folder next to the workbook.
// A relative path can be used in this case.
string timeSeriesFilePath = Path.Combine("Folder Name", "TimeSeries.dat");
string settingsFilePath = Path.Combine("Folder Name", "TimeSeries_LoadSettings.xml");
Toolbox.MeasurementCampaign.LoadData(timeSeriesFilePath, settingsFilePath);
Load list of files from the same folder
string workbookPath = Path.GetDirectoryName(Toolbox.CurrentWorkbookPath);
// Time series files are located in folder TimeSeriesInputs next to the workbook,
// all with extension txt.
// In this case a relative path cannot be used with GetFiles.
string inputTimeSeriesFolder = Path.Combine(workbookPath, "TimeSeriesInputs");
string[] timeSeriesFiles = Directory.GetFiles(inputTimeSeriesFolder, "*.txt");
// Settings file located next to the workbook
string settingsFilePath = Path.Combine(workbookPath, "LoadSettings.xml");
// Use the LoadData function that accepts a list of files.
// A conversion between array and list is necessary.
Toolbox.MeasurementCampaign.LoadData(timeSeriesFiles.ToList(), settingsFilePath);