Effacer les filtres
Effacer les filtres

S Function Output Ports

1 vue (au cours des 30 derniers jours)
Remus Mihail Prunescu
Remus Mihail Prunescu le 22 Nov 2012
Hi,
I have created an C S Function with 2 output ports. Each output port has a different width (One is for all the states and the other for real outputs).
ssSetNumOutputPorts(S, 2); ssSetOutputPortWidth(S, 0, g_nx); ssSetOutputPortWidth(S, 1, g_ny);
Now, after compiling and refreshing, Simulink displays my block with only 1 output port. The problem is that I cannot connect the block properly without seeing both output ports. What should I do?
Thanks, Remus.
  1 commentaire
Kaustubha Govind
Kaustubha Govind le 26 Nov 2012
Do you do this in mdlInitializeSizes? Could you paste the entire function please?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by