Define AnalyzeModelCode task with implizit Code gen task
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Saurav
am 23 Jul. 2025
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.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Organize and Deploy Model Advisor Checks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!