Skip to content

Commit

Permalink
Analyse Menu with correct Units, Versionstring, Color changed
Browse files Browse the repository at this point in the history
  • Loading branch information
AKMaily committed Oct 16, 2024
1 parent e5f0297 commit b7e70f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/analyze_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ void AnalyzeStateManager::writeAnalysisAnswerIntoFile() {
if (!fs::exists(complete_path))
fs::create_directories(complete_path);

outputFilePath = complete_path / ("Analysis_" + fs::path(fileNameBuf).filename().string());
outputFilePath = complete_path / ("Analysis_" + fs::path(fileNameBuf).filename().string() + "FFT");

std::ofstream writefile(outputFilePath, std::ios::trunc);
if (!writefile.is_open()) {
Expand Down Expand Up @@ -299,10 +299,10 @@ bool AnalyzeStateManager::saveAsCSV(const std::string& apiResponse) {
}

// Schreibe die Metadatenzeile
outFile << "FFT\n"; // Erste Zeile mit dem Inhalt "FFT"
outFile << "FFT Analyse\n"; // Erste Zeile mit dem Inhalt "FFT"

// Schreibe die Einheitenzeile
outFile << "frq,amp\n"; // Zweite Zeile mit den Einheiten "frq" und "amp"
outFile << "Hz,V \n"; // Zweite Zeile mit den Einheiten "frq" und "amp"

// Schleife über die "fft"-Daten im JSON-Array und schreibe sie in die Datei
for (const auto& item : jsonData["fft"]) {
Expand Down
2 changes: 1 addition & 1 deletion src/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ void AddPlotFromFile(fs::path &filePath) {
}

if (!filtered_x_values.empty() && !filtered_y_values.empty()) {
ImPlot::SetNextLineStyle(ImVec4{0.0f, 0.686f, 0.0f, 0.007f});
ImPlot::SetNextLineStyle(ImVec4{0.686f, 0.0f, 0.007f, 1.000f});

ImPlot::PlotBars(filePath.string().c_str(),
filtered_x_values.data(),
Expand Down
2 changes: 1 addition & 1 deletion src/languages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ inline const std::map<Key, const char *> germanLan{
{Key::Measure_not_saved,
"Die Messung wurde nicht gespeichert!\n"
"Möchten Sie es speichern, bevor Sie es löschen?\n"},
{Key::Version, "Ausführung"},
{Key::Version, "Version"},
{Key::Diagnostics, "Diagnose"},
{Key::Compression, "Kompression"},
{Key::Anlyz_crnt_waveform, "Aktuelle Wellenform analysieren"},
Expand Down

0 comments on commit b7e70f6

Please sign in to comment.