padv.builtin.task.RunCodeInspection Class
Namespace: padv.builtin.task
Superclasses: padv.Task
Task for inspecting generated model code using Simulink Code Inspector
Description
The padv.builtin.task.RunCodeInspection class provides a task that can
detect unintended functionality in your models by establishing model-to-code and code-to-model
traceability using Simulink®
Code Inspector™. The results of this task can help you to satisfy code-review objectives in
DO-178 and other high-integrity
standards.
You can add the task to your process model by using the
method addTask. After you add the task to your process model, you can run the
task from the Process Advisor app or by using the function
runprocess.
To view the source code for this built-in task, in the MATLAB® Command Window, enter:
open padv.builtin.task.RunCodeInspectionThe padv.builtin.task.RunCodeInspection class is a handle class.
Note
This task is not supported on macOS.
Creation
Description
creates a task for detecting unintended functionality in models using Simulink
Code Inspector.task = padv.builtin.task.RunCodeInspection()
specifies that the task can only execute after the specified predecessor task runs.task = padv.builtin.task.RunCodeInspection(PredecessorTask=PredecessorTask)
When you specify a predecessor task, you must also specify a dependsOn
relationship between the RunCodeInspection task and the predecessor task in
your process model.
sets certain properties using one or more name-value arguments. For example, task = padv.builtin.task.RunCodeInspection(Name=Value)task
= padv.builtin.task.RunCodeInspection(Name = "MyCodeInspectionTask") creates a
task with the specified name.
You can use this syntax to set property values for IsTopModel,
ReportFolder, Name,
Title, IterationQuery,
InputDependencyQuery, InputQueries,
LaunchToolAction, and LaunchToolText.
The padv.builtin.task.RunCodeInspection class also has other properties, but you cannot set
those properties during task creation.