- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » counter
Page Start Prev 1 Next End
counter
Re: counter
Jun-22-15 05:17:50
You want a when-equation to count discrete changes. http://book.xogeny.com/behavior/discrete/when/
Code:
when out1 then
x = pre(x) + 1;
end when;
x = x + 1 is a hard equation to satisfy since it is identical to 0 = 1.
- sjoelund.se
- 1700 Posts
Page Start Prev 1 Next End
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » counter
There are 0 guests and 0 other users also viewing this topic