필터 지우기
필터 지우기

S Function Output Ports

조회 수: 1 (최근 30일)
Remus Mihail Prunescu
Remus Mihail Prunescu 2012년 11월 22일
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