Products & Services Solutions Academia Support User Community Company

Learn more about Parallel Computing Toolbox   

RunningFcn - Specify M-file function to execute when job or task starts running

Description

RunningFcn specifies the M-file function to execute when a job or task begins its execution.

The callback executes in the local MATLAB client session, that is, the session that sets the property.

Characteristics

Usage

Task object or job object

Read-only

Never

Data type

Callback

Values

RunningFcn can be set to any valid MATLAB callback value.

Examples

Create a job and set its QueuedFcn property, using a function handle to an anonymous function that sends information to the display.

jm = findResource('scheduler','type','jobmanager', ...
          'name','MyJobManager','LookupURL','JobMgrHost');
j = createJob(jm, 'Name', 'Job_52a');
set(j, 'RunningFcn', ...
    @(job,eventdata) disp([job.Name ' now running.']))
.
.
.
submit(j)
Job_52a now running.

See Also

Functions

submit

Properties

FinishedFcn, QueuedFcn

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS