diff --git a/src/OMSimulatorLib/CSVWriter.cpp b/src/OMSimulatorLib/CSVWriter.cpp index b7642de92..c8feef39f 100644 --- a/src/OMSimulatorLib/CSVWriter.cpp +++ b/src/OMSimulatorLib/CSVWriter.cpp @@ -66,16 +66,16 @@ bool oms::CSVWriter::createFile(const std::string& filename, double startTime, d fputs("\"sep=,\"\n", pFile); // first signal is always 'time' - fputs("\"time\"", pFile); + fputs("time", pFile); // write signal names to csv file for (int i = 0; i < signals.size(); ++i) - fprintf(pFile, ", \"%s\"", signals[i].name.c_str()); + fprintf(pFile, ",%s", signals[i].name.c_str()); // write parameter headers to csv file if (Flags::AddParametersToCSV()) for (int i = 0; i < parameters.size(); ++i) - fprintf(pFile, ", \"%s\"", parameters[i].signal.name.c_str()); + fprintf(pFile, ",%s", parameters[i].signal.name.c_str()); fputs("\n", pFile); return true; diff --git a/testsuite/simulation/import_export_signalFilter.lua b/testsuite/simulation/import_export_signalFilter.lua index 1060b0537..a875a322b 100644 --- a/testsuite/simulation/import_export_signalFilter.lua +++ b/testsuite/simulation/import_export_signalFilter.lua @@ -285,7 +285,7 @@ oms_delete("model") -- info: Result file: model_res.csv (bufferSize=1) -- -- --- "time", "model.root.Gain.u", "model.root.System2.Input_1", "model.root.Gain.k" +-- time,model.root.Gain.u,model.root.System2.Input_1,model.root.Gain.k -- 0, 0, 30, 1 -- -- endResult