Cannot delete PID block

5 ビュー (過去 30 日間)
mariko shirazi
mariko shirazi 2021 年 10 月 28 日
コメント済み: mariko shirazi 2021 年 11 月 11 日
I have some PID blocks created in R2016B, I have converted the model to R2019B. The Model runs fine but I cannot delete some PID blocks. I get a message about error trying to execute the 'DeleteFcn' and specific reference to Callback string is 'pid pack.PID Config.closeTuner(gcbh)'
These were PID blocks which I had modified (which I think means I had to unlink them or something but I cannot recall). Even if I delete all the content inside the subsystem I still cannot delete it.
I verified I still do indeed have an active license for Simulink Control Design.

採用された回答

Monika Jaskolka
Monika Jaskolka 2021 年 10 月 28 日
編集済み: Monika Jaskolka 2021 年 10 月 28 日
It looks like the DeleteFcn in 2016 was pidpack.PIDConfig.closeTuner(gcbh) while in 2019 it is pidpack.PIDConfig.utilcloseTuner(gcbh). Try this:
  1. Click on the PID block
  2. Go to the Command Window and enter the following:
set_param(gcbh, 'DeleteFcn', 'pidpack.PIDConfig.utilcloseTuner(gcbh)')
3. Try to delete the block
If this still doesn't work, I would try just deleting the callback altogether:
set_param(gcbh, 'DeleteFcn', '')
  5 件のコメント
mariko shirazi
mariko shirazi 2021 年 11 月 11 日
Sorry only reason for delay in acceptance is that I didn't know I had to vote and accept...
Thank you for your help!!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by