MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / coreClearPlots

Function coreClearPlots

app/src/DataModel/Scripting/DashboardApi.cpp:77–88  ·  view source on GitHub ↗

* @brief Clears time-series plot buffers without rebuilding widgets or actions. */

Source from the content-addressed store, hash-verified

75 * @brief Clears time-series plot buffers without rebuilding widgets or actions.
76 */
77static bool coreClearPlots(QString& errorMsgOut)
78{
79 try {
80 UI::Dashboard::instance().clearPlotData();
81 } catch (const std::exception& e) {
82 errorMsgOut = QString::fromUtf8(e.what());
83 } catch (...) {
84 errorMsgOut = QStringLiteral("unknown exception");
85 }
86
87 return errorMsgOut.isEmpty();
88}
89
90/**
91 * @brief Sets the dashboard plot horizon (sample count).

Callers 2

luaClearPlotsFunction · 0.85
clearPlotsMethod · 0.85

Calls 2

clearPlotDataMethod · 0.80
isEmptyMethod · 0.80

Tested by

no test coverage detected