示例#1
0
    void DoExperiments()
    {
        Parameters.Reset();
        var basepath     = GetExperimentBasePath();
        var settingsPath = basepath + ".settings.txt";
        var meta         = $"Date: {DateTime.Now:yyyy-MM-dd H:mm:ss}\n{Parameters.FixedParameters()}";

        File.WriteAllText(settingsPath, meta);

        Results = new ExperimentResults();

        var resultsPath = basepath + ".results.csv";
        var header      = $"{Parameters.VariableParametersCSVHeader()},{ExperimentResults.CSVHeader()}\n";

        File.WriteAllText(resultsPath, header);

        DoNextExperiment = LeaveResultOnScreen == false;

        StartNextExperiment();
    }