Error reported by S-function 'adams_plant
古いコメントを表示
Hi everyone
I want to co-simulate my dynamc model in adams using adams/MATLAB co-simulation feature. To do so, I have taken the flowwing steps:
1- Exprot the control plant in adams
2- Run the .m file in matlab.
3- Opened the simulink with adasm-sys command.
Now here is the problem: When I give the system a constant input, it runs and no problem appears. But, when I put a controller before the system inputs, the following error appears (copied from the simulink diagnostic viewer):
- Error reported by S-function 'adams_plant' in 'PID/adams_sub/ADAMS Plant/S-Function': AEI_Outputs: Adams output evaluation failure at time 0.002000
The ways I took to resilve the problem but failed:
1- Created a variable in variable named "ADAMS_CONTROLS_WTIME" in "Environmental variables" in my computer>>properties>>advanced system settings.
2- Changing the step size, error tolerance.
Can you please help me resolve the issue? I appreciate it!
Thanks
Saber
3 件のコメント
Tariku Sinshaw Tamir
2020 年 11 月 16 日
編集済み: Tariku Sinshaw Tamir
2020 年 11 月 16 日
The samething happens to me. If you solved the problem let me know please? the simulation gets interupted after running some time saying that "Adams output evaluation failure at time.......".
Daniele Nanni
2021 年 2 月 11 日
Hi, have you solved the problem? Becouse I have the same problem and I don't know how to solve it!
Soleimy Fortis
2021 年 5 月 14 日
lo pudieron solucionar?
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!