Cannot delete Simscape block

조회 수: 17 (최근 30일)
Özgür
Özgür 2021년 5월 18일
댓글: Özgür 2021년 5월 25일
I accidentally added a 4-Speed CR-CR Simscape block on my model and now cannot delete it!
When I want to delete the block, I got the following message: Error evaluating 'PreDeleteFcn' callback of Disk Friction Clutch block (mask) 'CRS/AlgCrs/Subsystem/AlgCrs/Atomic Subsystem/4-Speed CR-CR1/Clutch R'.
I can comment out the Simscape block and continue working on the model but when I want to save my changes I get the following error message: Error evaluating 'PreSaveFcn' callback of Disk Friction Clutch block (mask) .... Callback string is 'simscape.compiler.sli.internal.callback('PreSaveFcn',gcbh);'
Any ideas?

답변 (1개)

Aghamarsh Varanasi
Aghamarsh Varanasi 2021년 5월 25일
Hi,
You can refer to the 'PreDeleteFcn' and 'PreSaveFcn' callbacks in the "Block Callbacks" for the '4-Speed CR-CR' block. There seems to be some issue in these callbacks. The callbacks are executed before or after a modelling action takes place. If the callback function has an error the modelling action does not take place.
Hope this helps
  댓글 수: 1
Özgür
Özgür 2021년 5월 25일
Thanks for the suggestion!
I cannot open/edit the PreDeleteFcn and PreSaveFcn Callbacks since I don't have the license for the product.
I reported this incident to the Mathworks support team. They confirmed the issue as I suspected. In short, SimScape plugin is installed without any license behind it. So you can add SimScape blocks on your model but you cannot do anything with them. Even you cannot delete them.
Mathwork's suggestion is to transfer all the blocks other than SimScape block to a new model and continue working with the new model. I was planning to do the same.
Cheers,
Özgür

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by