Realtime model runs: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 4: Line 4:


----
----
<font size="2">idkbase note 145</font>
[[Category:Interaction (User)]]
[[Category:Interaction (User)]]
[[Category:Realtime]]
[[Category:Time]]
<font size="2">idkbase note 145</font>

Latest revision as of 04:08, 12 January 2008

The system attribute "Run In Real Time" can be used to turn on and off the realtime run mode of the engine. In this mode the clock gets stepped along in real time by the actual time

Realtime mode involves sending a "continue" message to the engine 2 times a second. A model can use the "_Run Continue" broadcast to capture this event and perform a "background" task. This task/thread will be executed even if the user is editing a cell/attribute. It must not perform any time consuming activity and must not generate a dialog. It should be heavily validated to ensure the realtime task will not stop the model with a message under any circumstance.



idkbase note 145