How to solve the 'StopFcn' error when the cause is "Vectors must be the same length."
조회 수: 48 (최근 30일)
이전 댓글 표시
I have got a simulation file for a grid-tie inverter, which I am going to leave its image below. When I run the simulation, I receive the following error:
Error evaluating 'StopFcn' callback of block_diagram 'DC2ACGRID2'.
Caused by:
Vectors must be the same length.
I cannot figure out what vectors are causing this trouble. Any help is very much appreciated.
댓글 수: 16
Walter Roberson
2021년 5월 13일
set_param('YourModelNameGoesHere', 'StopFcn', '')
then save your model.
Lazar Dulovic
2022년 6월 30일
답변 (1개)
Scout Patel
2021년 3월 31일
- Go to the "MODELING" tab on the simulink window.
- In the Center click on "Model Settings".
- Under Data Import/Export UNCHECK the box next to: "Single Simulation output:"
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!