Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Using Matlab coder for protecting blocks with power ports

2 vues (au cours des 30 derniers jours)
Kumar
Kumar le 21 Déc 2011
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi, I am new to Matlab-simulink. I am trying to protect a block that I am using in my project. I tried using Matlab coder. But, when I try to reference the model after protecting it, the referencing block does not recognize anything other than the signal ports. It would be really helpful if anyone can share their experience with matlab coder.
Thanks, Kumar
  3 commentaires
Walter Roberson
Walter Roberson le 21 Déc 2011
"power ports" ? Are you using SimPower ?
Kumar
Kumar le 22 Déc 2011
Yes I am using SimPower. Sorry to confuse everyone with the wrong jargon. I am using Simulink.ModelReference.protect command to create .mdlp file and then reference it. When I reference the .mdlp file, the PMC_ports are not recognized. I am not able to get any output from the inverter inside the referenced protected model.

Réponses (1)

Fangjun Jiang
Fangjun Jiang le 21 Déc 2011
To be precise, it's Simulink Coder, not MATLAB Coder. See Protecting Referenced Models
  3 commentaires
Kaustubha Govind
Kaustubha Govind le 22 Déc 2011
By PMC_ports, do you mean ports with physical signals? If yes, model reference blocks do not support such signals at their boundaries. Perhaps you could consider converting them to a regular Simulink signal before outputting them from your block.
Fangjun Jiang
Fangjun Jiang le 22 Déc 2011
Sorry I don't have SimPower. My experience on model reference is with Simulink only.

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by