Define AnalyzeModelCode task with implizit Code gen task

조회 수: 3 (최근 30일)
Xiaohong shen
Xiaohong shen 2025년 4월 10일
댓글: Saurav 2025년 7월 23일
I need define a polyspace task (AnalyzeModeCode) in Process Advisor. This task requires output from the code gen task which assigned to the property "InputQueries"
Normaly I have to define the code gen task (padv.builtin.task.GenerateCode) explicitly and add the dependence to my polyspace task like the code below.
For some reason I don't want to do deinfe the code gen task explicitly. Is it possible to work around it just
How can I replace the line "InputQueries ...." with a implicity code gen task?
psTopServerTask = pm.addTask(padv.builtin.task.AnalyzeModelCode(TreatAsRefModel = false, ...
Name = "Analyze Top Model (Server)", ...
Title = "Analyze Top Model (Server)", ...
InputQueries = padv.builtin.query.GetOutputsOfDependentTask('Generate Code as Top Model') ...
));
  댓글 수: 1
Saurav
Saurav 2025년 7월 23일
There is no built-in way to have AnalyzeModelCode "implicitly" create or reference a code generation task in Process Advisor. The code generation task must be defined in the process model, either by you or by the default process template provided by Process Advisor, and referenced explicitly in your Polyspace analysis task's properties.
If you want to minimize scripting, rely on the default process model creation features of Process Advisor, which will manage task dependencies (including code generation) for you. For scripting and custom process flows, you must define all dependencies explicitly.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Organize and Deploy Model Advisor Checks에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by