Error with Process advisor example

5 次查看(过去 30 天)
I am trying to run matlab in built example for process advisor. When i am trying to run the generate code task, it fails and gives me following error. I did not change any thing. Trying to run the example as it is.
#### Tasks to run:
#### padv.builtin.task.GenerateCode::02_Models/AHRS_Voter/specification/AHRS_Voter.slx
#####################
## Starting task padv.builtin.task.GenerateCode::02_Models/AHRS_Voter/specification/AHRS_Voter.slx
### Starting serial model reference code generation build.
### Checking status of model reference code generation target for model 'AHRS_Voter'.
### Model reference code generation target (AHRS_Voter.c) for model AHRS_Voter is out of date because AHRS_Voter.c does not exist.
### Starting build procedure for: AHRS_Voter
### Invoking custom build hook: CodeGenEntry
### Build procedure for AHRS_Voter aborted due to an error.
Build Summary
Code generation targets built:
Model Action Rebuild Reason
==================================================
AHRS_Voter Failed AHRS_Voter.c does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 1.1295s
!!!Code generation errored out for Iteration Artifact: 'AHRS_Voter'.
Warning: Error encountered while executing custom build hooks entryhook(modelName);: Dot indexing is not supported for
variables of this type.
> In padv.builtin.task/GenerateCode/run (line 129)
In padv.internal/TaskExecutionNode/executeTask
In padv.internal/TaskExecutionNode/execute
In padv.internal/TaskExecutionEngine/executeNode
In padv.internal/TaskExecutionEngine/executeBuildQueue
In padv.internal/TaskExecutionEngine/build
In padv/BuildService/build
In padv/BuildService/build_servicecall
In alm.internal.matlabServiceConnectorServiceDispatch
## Task: Generate Code
#### Input Artifacts:
#### 02_Models/AHRS_Voter/specification/AHRS_Voter.slx
#### Dependent Artifacts:
#### 02_Models/AHRS_Voter/specification/AHRS_Voter.slx
#### 02_Models/AHRS_Voter/specification/data/DD_AHRS_Voter.sldd
#### 02_Models/common/specification/data/csSingleInstance.sldd
#### 02_Models/common/specification/data_types/bus_types.sldd
#### processmodel.m
#### Output Artifacts:
#### Pass: 0
#### Warn: 1
#### Fail: 1
#### Start: 07-Feb-2024 12:03:11
#### End: 07-Feb-2024 12:03:12
#### Duration: 00:00:01
#### Task Status: Fail
## Completed task padv.builtin.task.GenerateCode::02_Models/AHRS_Voter/specification/AHRS_Voter.slx
#####################
#####################
## Ending Process Advisor build at 07-Feb-2024 12:03:12
#### Duration: 00:00:01
#### Build Status: Fail
#### Number of tasks: 1
#### Number of tasks executed: 1
#### Number of tasks skipped: 0
#### Number of tasks in queue: 0
#### Number of tasks failed: 1
#### Tasks with issues:(Status::Task::IterationArtifact)
#### Fail::padv.builtin.task.GenerateCode::02_Models/AHRS_Voter/specification/AHRS_Voter.slx
#####################
  2 个评论
Kautuk Raj
Kautuk Raj 2024-2-14
Could you share the details of the built-in example you are looking at so that we can understand the issue better?
Dhruvilkumar Chavada
processAdvisorExampleStart
task: generate code

请先登录,再进行评论。

回答(1 个)

Gyan Vaibhav
Gyan Vaibhav 2024-2-27
编辑:Gyan Vaibhav 2024-2-27
Hi Dhruvilkumar,
I tried reproducing your error, however I was not able to. The model works perfectly fine and all the task are running successfully.
Further, what I can understand from the errors is that you are trying to run the "Code Generation Task" on the "AHRS_Voter" model. Also, I think you might have introduced some custom build settings. If you could share what changes you made in the model or settings, so that others can reproduce, it would be much easier to identify what might be the cause for the error.
You can try the following:
  1. Try running all the tests, instead of an specific one, and see if that works, and then go ahead and try running the only task you tried running, or try toggling incremental build.
  2. Try updating to a newer version of MATLAB, I tested and it was working fine on R2023b.
  3. Contat Mathworks Technical Support.
Follow this user guide to know more about the example, and CI/CD Autotmation for Simulink Check.
Thanks

类别

Help CenterFile Exchange 中查找有关 Portfolio Optimization and Asset Allocation 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by