# \#controlsystemsmtk

**URL:** https://discourse.julialang.org/tag/controlsystemsmtk/1764.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Combining MTK standard library StateSpace with other Blocks](https://discourse.julialang.org/t/combining-mtk-standard-library-statespace-with-other-blocks/127322)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 5\
**Last updated:** [January 9, 2026, 2:42pm UTC](https://discourse.julialang.org/t/combining-mtk-standard-library-statespace-with-other-blocks/127322 "2026-01-09T14:42:18Z")

</div>

I’m currently trying to integrate a linear state-space model inside a ModelingToolkit model. For this purpose I used the ODESystem specialization provided by ControlSystemsMTK, which itself uses the StateSpace block pr…

---

## [PI Controller oscillating between limit values](https://discourse.julialang.org/t/pi-controller-oscillating-between-limit-values/131510)

<div class="topic-metadata">

**Author:** [@madtorresga](https://discourse.julialang.org/u/madtorresga)\
**Replies:** 4\
**Last updated:** [August 12, 2025, 5:01am UTC](https://discourse.julialang.org/t/pi-controller-oscillating-between-limit-values/131510 "2025-08-12T05:01:23Z")

</div>

Hello, I’m trying to implement a PI controller that turns on once the cell goes out of the voltage limits. My model looks something like this: @mtkmodel Cell begin ... @components begin ... deadzone = DeadZ…

---

## [Nested loop in @mtkmodel / Matrix manipulation](https://discourse.julialang.org/t/nested-loop-in-mtkmodel-matrix-manipulation/130133)

<div class="topic-metadata">

**Author:** [@madtorresga](https://discourse.julialang.org/u/madtorresga)\
**Replies:** 2\
**Last updated:** [June 23, 2025, 4:56pm UTC](https://discourse.julialang.org/t/nested-loop-in-mtkmodel-matrix-manipulation/130133 "2025-06-23T16:56:09Z")

</div>

Hi :slight\_smile: I’m trying to automate the battery cells’ creation from an already defined ECM model: const Qs = \[4.8 4.4 4.2 ; 3.7 3.5 3.3\] @mtkmodel Series\_Connection begin @variables begin v\_max …
