wait
Wait for Simulink.Simulation.Job
object to change
state
Description
wait(
blocks execution in a client
session until the job identified by the object simJob
)simJob
reaches the
'finished
' state or fails. This occurs when all the simulations finish
execution on the workers.
wait(
blocks execution in the client session until the specified job object changes state to the
value of 'simJob
,'stateOfJob'
)state
'. The valid states to wait for are
'queued
', 'running
', and
'finished
'. If the object is currently or has already been in the
specified state, wait
is not performed and execution returns immediately.
For example, if you execute wait(simJob,'queued')
for a job already in
the 'finished
' state, the call returns immediately.
wait(
blocks execution until either the job reaches the specified 'simJob
,'stateOfJob'
,timeout
)state
', or
timeout seconds elapse, whichever happens first.
Examples
Input Arguments
Version History
Introduced in R2018b