- Index
- » Users
- » hvontres
- » Profile
Posts
Posts
Is there Documentation on the differences in annotation between SimForge and OMEdit? I started some models in simforge and I would like to bring them over to OMEdit without having to redo my annotations.
Thank you very much
It looks like the latest stable/nightly builds of omc depend on libsqlite-3.0 >3.7.2. Unfortunately, the current LTS version of Ubuntu only provides 3.6.22 . Is there any reason for this dependency?
Thanks,
Henry von Tresckow
Hello,
I am trying to implement a simple sinc filter for a model I am working on. The following code works for n<=19 but for higher orders it fails:
Code:
block SyncFilter
parameter Real UpdateRate = 25000.0;
parameter Integer n = 5;
extends Modelica.Blocks.Interfaces.DiscreteSISO(samplePeriod = 1.0 / (n * UpdateRate));
output Real x[n - 1] "State of transfer function from controller canonical form";
Real b[n] = ones(n) / (1.0 * n);
Real xext[n];
Real x1;
equation
when sampleTrigger then
x1 = u;
xext = vector([x1;x]);
x = xext[1:size(x, 1)];
y = vector([b]) * xext;
end when;
end SyncFilter;
With n=20, I get the following error:
Code:
"Error: Wrong type or wrong number of arguments to vector([b])'.
Any Thoughts?
- Index
- » Users
- » hvontres
- » Profile