- Index
- » Programming
- » Modelica Language
- » Once-only execution
Page Start Prev 1 Next End
Once-only execution
Re: Once-only execution
Jun-18-13 08:38:20
Guard it with external C code. Give it a unique identifier so you can guard multiple sections.
Code:
if once(13) then
...
end if;
- sjoelund.se
- 1700 Posts
Re: Once-only execution
Jun-24-13 16:38:13
The part inside you have guarded with an expression in an external function that you made sure would only return true once.
The algorithm section will be called every time-step, but the part inside only once.
- sjoelund.se
- 1700 Posts
Page Start Prev 1 Next End
- Index
- » Programming
- » Modelica Language
- » Once-only execution
There are 0 guests and 0 other users also viewing this topic