Sampled data systems?

3 posts / 0 new
Last post
janpeter
Offline
Joined: 2010-09-11
Sampled data systems?

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
 
 
 

jakesson
Offline
Joined: 2009-03-14
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

janpeter
Offline
Joined: 2010-09-11
Thanks, it works now.   Jan

Thanks, it works now.
 
Jan Peter

Login or register to post comments