S Function Output Ports

4 次查看(过去 30 天)
Remus Mihail Prunescu
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 个评论
Kaustubha Govind
Kaustubha Govind 2012-11-26
Do you do this in mdlInitializeSizes? Could you paste the entire function please?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by