You can create a Parallel Run in Teach. It allows you to define the
spawnable task. During the simulation, Spawner triggers\fires the spawnable task and
simulates the spawnable task in parallel with the main Spawner task.
The current
task is named spawner. The task that is getting invoked\fired is a spawnable task. Define the
task as spawnable to get that under the Task list in the Parallel Run dialog.
This allows you to start a spawnable task. In PRUN dialog:
- All the available spawnabilities for the current tasks are available. From the list,
select the task.
- Identifies the parallel thread. This is referenced in the Parallel
Wait.
- If selected, the simulation keeps running when the spawned task is still executing.
Otherwise the simulation ends when the main task finishes.


Note:
- Task can be defined as service as well as spawnable task.
- A task being launched in parallel must be declared as spawnable in the
properties of the task. It can have input arguments but no output arguments.
- JobID is optional and is useful for using sustain option
or ParallelWait instruction (JobID scope is managed at
resource’s level.)
- The sustain option allows you to maintain keeping the simulation alive until the
end of the spawned task. Otherwise, simulation stops when the main program is
finalized.
- All the IOs that are created\available under the selected spawnable task are
listed under the parameters. The user can enter the valid values or select the
available IOs for the current task from the list.
This functionality verifies if a new move attempts for a device that is already executing
a move during simulation. If it is, it stops simulation and displays a message in the device
Output (and RRS) message windows.