How can I delete a BLDC motor driver block of which the library link has been broken?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jorrit Heidbuchel
el 5 de En. de 2017
Respondida: Jordan Ross
el 9 de En. de 2017
In an attempt to modify the Brushless DC Motor Drive block in simulink, I copied it to my model and then broke the library link to make changes. I did this because I only use it in one model, so I figured the library link is not important. Running the model is however not possible anymore without the library link because the callbacks don't work anymore. I was able to, in another attempt, modify the BLDC motor drive block by making a custom library, but I cannot delete the block with the broken library link anymore because of following error:
--> Error evaluating 'DeleteFcn' callback of SubSystem block ...[model path]
--> SubSystem block does not have a parameter named "driveType"
How can I delete this block? It is giving errors when I want to run the model.
Kind regards, Jorrit
0 comentarios
Respuesta aceptada
Jordan Ross
el 9 de En. de 2017
Hello Jorrit,
As I understand, you have a Brushless DC Motor Drive block that you have modified and broken the library link to on purpose. However, now you are trying to delete the block but it is giving an error.
The reason for this error is that in the Brushless DC Motor Drive block there is a "DeleteFcn" callback which tries to get a block parameter that no longer exists (since you modified). To delete this block you will first need to delete the contents of the "DeleteFcn" callback fro the Brushless DC Motor Drive block. You can get to callbacks by right clicking on the block and selecting "Properties.." and then selecting the tab "Callbacks".
0 comentarios
Más respuestas (0)
Comunidades de usuarios
Más respuestas en Power Electronics Control
Ver también
Categorías
Más información sobre Motor Drives en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!