From 338c6e8198a40b8b53d298af0cd1a11ccff272c7 Mon Sep 17 00:00:00 2001 From: tobolar Date: Tue, 21 May 2024 14:28:25 +0200 Subject: [PATCH 1/2] Remove SI unit from annotation 'Text' --- Modelica_LinearSystems2/Controllers/SampleClock.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modelica_LinearSystems2/Controllers/SampleClock.mo b/Modelica_LinearSystems2/Controllers/SampleClock.mo index 4d33b59b..d42f5206 100644 --- a/Modelica_LinearSystems2/Controllers/SampleClock.mo +++ b/Modelica_LinearSystems2/Controllers/SampleClock.mo @@ -42,7 +42,7 @@ drag Modelica_LinearSystems2.Controllers.SampleClock into the top level of your Text( extent={{-150,-110},{150,-140}}, textColor={0,0,0}, - textString="%sampleTime s"), + textString="%sampleTime"), Ellipse( extent={{-25,-10},{-45,10}}, lineColor={0,0,0}, From d99cdad016b91cf9cd2ab3b74e309b3fe926c55e Mon Sep 17 00:00:00 2001 From: tobolar Date: Tue, 21 May 2024 14:28:37 +0200 Subject: [PATCH 2/2] Diagram: draw rectangle around controller --- .../Controllers/Examples/SimpleControlledDrive.mo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modelica_LinearSystems2/Controllers/Examples/SimpleControlledDrive.mo b/Modelica_LinearSystems2/Controllers/Examples/SimpleControlledDrive.mo index 5d3bf1dd..8f9fbe62 100644 --- a/Modelica_LinearSystems2/Controllers/Examples/SimpleControlledDrive.mo +++ b/Modelica_LinearSystems2/Controllers/Examples/SimpleControlledDrive.mo @@ -208,5 +208,6 @@ of the continuous controller are compared. Text( extent={{-12,-91},{53,-97}}, textColor={255,0,0}, - textString="plant (flexible drive)")})); + textString="plant (flexible drive)"), + Rectangle(extent={{-48,50},{96,-16}}, lineColor={255,0,0})})); end SimpleControlledDrive;