Plotting signals in besim

This commit is contained in:
Joppe Blondel
2026-08-02 11:22:28 +02:00
parent 2128fb00b4
commit 756a621ab1
7 changed files with 391 additions and 1 deletions
+4 -1
View File
@@ -7,6 +7,7 @@ from PySide6.QtWidgets import QApplication, QMessageBox
from bedit_gui.controllers.simulation_file_controller import SimulationFileController
from bedit_gui.controllers.log_controller import LogController
from bedit_gui.controllers.simulation_plot_controller import SimulationPlotController
from bedit_gui.controllers.simulation_run_controller import SimulationRunController
from bedit_gui.simulation_models import CompiledModel
from bedit_gui.services.application_settings import SimulationApplicationSettings
@@ -43,7 +44,9 @@ def main(arguments: list[str] | None = None) -> int:
settings = SimulationApplicationSettings()
LogController(window, settings.log_level)
SimulationRunController(window, controller)
run_controller = SimulationRunController(window, controller)
plot_controller = SimulationPlotController(window, controller)
run_controller.simulation_state_changed.connect(plot_controller.refresh_results)
window.showMaximized()