Algebraic Loops in Predictive Maintenance Transmission Casing Example

I have been trying to follow this example from the Predictive Maintenance Toolbox tutorials.
When trying to build the model, I am faced with an error:
=== Build (Elapsed: 14 sec) ===
### Starting build procedure for model: pdmTransmissionCasing
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: C:\Users\*****\Documents\MATLAB\Examples\predmaint\UsingSimulinkToGenerateFaultDataExample\pdmTransmissionCasing_rsim_rtw
### Build procedure for model: 'pdmTransmissionCasing' aborted due to an error.
Error:Algebraic loops are not supported in generated code. Use the 'ashow' command in the Simulink Debugger to see the algebraic loops
I have tried changing some of the solver parameters such as making it variable-step to fix some previous errors (and changing the simulation file type), but the error still persists and I am unable to troubleshoot it within the model. I would really appreciate it if someone has suggestions for how to resolve this.

回答 (1 件)

Mohamed Marei
Mohamed Marei 2018 年 4 月 3 日

0 投票

After some tinkering around with the model, I discovered that changing the solver configuration to "auto" helps solve this issue. I have since managed to run the simulations.

カテゴリ

ヘルプ センター および File ExchangeGet Started with Predictive Maintenance Toolbox についてさらに検索

質問済み:

2018 年 4 月 3 日

回答済み:

2018 年 4 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by