メインコンテンツ

Execute and Monitor Tasks Defined in Process Advisor Using Simulink Copilot

You can use Simulink® Copilot with Process Advisor to automate and execute development and verification activities in your project. Process Advisor defines a repeatable workflow by organizing development activities as automated tasks within a process model. Simulink Copilot extends this workflow by providing a conversational interface in the Copilot Chat panel, where you can discover, run, and review the tasks defined in the process model. Copilot helps you navigate the workflow, follow the defined process, and monitor task progress. To learn more about Process Advisor, see Run Tasks with Process Advisor (Simulink Check).

In this example, you use the Copilot Chat panel to execute tasks defined in your process.

Prerequisites

Open Your Project

  1. Your models and supporting files must be in a MATLAB® project. For more information, see Using MATLAB Projects in Simulink. For this example, open an example project by running this command.

    openExample('simulink/UsingAProjectExample')

  2. Open the model AnalogControl in the models folder.

  3. Open the Copilot Chat panel by using the Simulink Copilot Chat button on the Simulink toolstrip on the Simulation and Modeling tabs.

Run Tasks and Review Results

  1. To execute tasks from the Copilot Chat panel, enter a prompt. For this example, prompt Copilot to check model compliance with modeling standards (for example, Run the "Check Modeling Standards" task). Copilot processes your request and asks for permission to run the Check Modeling Standards task, which uses Model Advisor to check model compliance with industry standards and guidelines.

    Asking permission

  2. Provide permission by selecting Allow. In this step, if your project does not contain a process model (processmodel.m), the Process Advisor creates a default one, then executes the Check Modeling Standards task. After execution, Process Advisor passes the results with a link to the report to Copilot Chat panel.

    Task execution results with a link to the HTML report.

  3. To run another task or all tasks in the process model from the Chat pane, enter a prompt specifying your requirements. If certain tasks are disabled because you do not have the required product licenses, Copilot may mark them as Pending instead of Not run.

  4. You can also ask Copilot to list out and explain the tasks in your process model (processmodel.m) by entering this prompt.

    List and explain the tasks defined in the process model located in this project.

However, when your process model contains multiple processes, Copilot might not recognize them individually. In each session, it responds to questions or perform actions for one process at a time. If you are not familiar with Process Advisor, use Copilot to learn more about it.

See Also

Topics