主要内容

ssgetOutputPortWidth

获取输出端口的宽度

句法

int_t ssgetOutputPottWidth(SimStruct *s,int_t端口)

参数

s

代表S功能块的SIMSTRUCT。

港口

输出端口的索引。

返回

一个int_t值表示索引指定的输出端口的宽度港口

描述

在任何例程中使用(除了mdlinitialsizes)要确定输出端口索引从0开始的输出端口的宽度,并且必须小于输出端口的数量。

语言

C,C ++

例子

请参阅S功能sfun_zc.csfcndemo_sfun_zc和s功能sfun_dtype_io.csfcndemo_dtype_io

也可以看看

sssetOutputPortWidth

在R2006a之前引入