Main Content

getSimulationJobs

Get all Simulink.Simulation.Job objects from cluster

Description

jobs = getSimulationJobs(myCluster) returns an array of Simulink.Simulation.Job objects that correspond to the jobs created by executing of batchsim on cluster, myCluster.

Examples

collapse all

This example shows how to access a batchsim job that was submitted to a cluster. Assume that myCluster is a parallel.Cluster object on which the Simulink.Simulation.Job object is running.

jobs = getSimulationJobs(myCluster)
 1×2 Job array:

        ID           Type        State        FinishDateTime  Username
     -----------------------------------------------------------------
   1     3           pool       queued                        #######
   2     4           pool       queued                        #######

The output displays all the Simulink.Simulation.Job objects on cluster, myCluster.

Input Arguments

collapse all

Cluster object representing parallel cluster compute resources.

Output Arguments

collapse all

Array of Simulink.Simulation.Job objects submitted by executing batchsim command.

Version History

Introduced in R2018b

See Also

Functions

Classes

Topics