This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getSimulationJobs

Get all Simulink.Simulation.Job objects from cluster

Syntax

jobs = getSimulationJobs(myCluster)

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.

Introduced in R2018b