Generating code as preemptible background thread

If you select Code Gen as Background Thread, the contents of the compound block is executed in a preemptible background thread. It is used for operations that are not as time critical as the main loop. Embed schedules the task to run as close as possible to the local time step rate, but since the task is no longer directly linked to the main task, the time step can be any interval. The code generated from the compound block is a function call.