-
From the Applications section of the action bar, click MATLAB
and drop it on
the process diagram.
- Double-click MATLAB .
The MATLAB Editor appears. -
From the MATLAB Editor, click the Contents
tab.
-
Determine when you want to perform actions:
Option | Description |
---|
Initialize |
Perform actions only the first time that the MATLAB adapter runs
within a job. This option is useful for initializing/creating variables
or loading functions one time at the beginning of the MATLAB
session. |
Execution Order |
Perform actions every time the MATLAB adapter runs. By default, the
MATLAB adapter starts with three predefined actions in the
Execution Order phase:
- Input Mappings for defining mappings from
Automation Process
Composer parameter values to MATLAB variables.
- Commands for defining the command to
run.
- Output Mappings for mapping MATLAB
variable values back to Automation Process
Composer parameters.
|
Finalize |
Perform actions only when the MATLAB session is shutting down.
Because the adapter can be configured to leave MATLAB open after the job
completes, these actions might not get run at the end of the job but may
instead be invoked later when Automation Process
Composer is cleaning up persistent adapters. |
-
Click the tab that corresponds to the phase for which you want to create
actions.
-
Click Add mapping action or Add command action,
depending on the type of action you want to create.
The MATLAB adapter creates a new action of the specified type and
displays it in the table on the tab.
The table presents the following information for each action:
Option | Description |
---|
Use? | Specifies whether or not this action runs. You can select this option to turn actions on
and off as needed. |
---|
Type | Specifies if the action is a mapping or a command. |
---|
Identifier | A unique name identifying the action. You can modify this
identifier directly in the table. |
---|
-
Use the up and down arrows located below the table to change the order of
the actions.
You can delete actions by clicking X .
-
If necessary, edit the details of any action by selecting it in the
table and using the panel on the right side of the editor.
-
Click Ok to save your changes and to close the
MATLAB Editor.
|