Simulink.Simulation.Future Class
Namespace: Simulink.Simulation
Superclasses:
Create Future object for simulation
Description
Create a Simulink.Simulation.Future object when you execute parsim with the 'RunInBackground' argument set to
'on'. The parsim command runs multiple simulations in
parallel using the inputs specified with an array of Simulink.SimulationInput objects. You can use this object to monitor the status of
ongoing simulations, fetch outputs of completed simulations, or cancel ongoing
simulations.
The parsim 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.
Construction
creates a future = parsim(in,'RunInBackground','on')Simulink.Simulation.Future object, future, while
running multiple simulations in parallel using the inputs specified in the Simulink.SimulationInput object, in.
Input Arguments
Properties
Methods
Method | Purpose |
|---|---|
Cancel a pending, queued, or running
Simulink.Simulation.Future object | |
Fetch next available unread output from
Simulink.Simulation.Future object array | |
Retrieve Simulink.SimulationOutput from
Simulink.Simulation.Future | |
Wait for Simulink.Simulation.Future objects to complete
simulation |
Examples
Version History
Introduced in R2018a