Hi,
I see in the manual section 3.3.3 that since ver 1.5 JModelica support sampled data systems.
Typically you need when and sample(,), see also example in Tillers book page 169.
When I try implement a slimmed down version of the example I get a compliance error message that "when statements are not supported".
I run FMU-model and I use ver 1.7 and everything else seems to work. What is wrong?
I also would appreciate some basic example combining a continuous time process and a digital contorller, eg level contorl in a tank with PI-control (with anti-windup...) or similar.
Jan Peter
Sampled data systems?
Wed, 2012-05-23 14:27
#1
Sampled data systems?
Sun, 2012-05-27 22:14
#2
Hi Jan-Peter,
I suggest you
Hi Jan-Peter,
I suggest you use a when-equation (which is encoded in an equation section) rather than an when-statement (which is encoded in an algorithm section). From the description of the problem, my guess is that the when clause reside in an algorithm section - these are not yet fully supported.
Best
/Johan
Mon, 2012-05-28 06:54
#3
Thanks, it works now.
Jan
Thanks, it works now.
Jan Peter