Define AnalyzeModelCode task with implizit Code gen task
4 次查看(过去 30 天)
显示 更早的评论
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
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!