Callback

Execute model logic periodically or in response to an event.

A Callback is an executable entry point inside a model. Choose periodic execution to run at a fixed interval, or event execution to run when the Control input meets its configured activation condition.

Add Callback from the block palette, or select Convert to Callback on a root-level Container. Configure its execution mode in Properties. Use the build configuration to select callbacks and arrange their execution order.

In the MDL editor, declare a callback with its schedule:

diagram:
    y = callback Control() every 10ms:
        value = 1.0
        output value

A task groups callbacks in the build configuration. It is separate from the callback diagram. See Callbacks and tasks.