Package:Simulink.Simulation
Superclasses:
CreateFuture
object for simulation
创建一个Simulink.Simulation.Future
object when you executeparsim
与'RunInBackground'
argument set to'on'
. Theparsim
command runs multiple simulations in parallel using the inputs specified with an array ofSimulink.SimulationInput
objects. You can use this object to monitor the status of ongoing simulations, fetch outputs of completed simulations, or cancel ongoing simulations.
Theparsim
command uses the Parallel Computing Toolbox™ license to run the simulations in parallel.parsim
runs the simulations in serial if a parallel pool cannot be created or if Parallel Computing Toolbox is not used.
creates afuture
= parsim(in
,'RunInBackground'
,'on')Simulink.Simulation.Future
object,future
, while running multiple simulations in parallel using the inputs specified in theSimulink.SimulationInput
object,in
.
Method |
Purpose |
---|---|
Cancel a pending, queued, or runningSimulink.Simulation.Future object |
|
Fetch next available unread output fromSimulink.Simulation.Future object array |
|
RetrieveSimulink.SimulationOutput fromSimulink.Simulation.Future |
|
Wait forSimulink.Simulation.Future objects to complete simulation |