获取输出端口的宽度
int_t ssgetOutputPottWidth(SimStruct *s,int_t端口)
s
代表S功能块的SIMSTRUCT。
港口
输出端口的索引。
一个int_t
值表示索引指定的输出端口的宽度港口
。
在任何例程中使用(除了mdlinitialsizes
)要确定输出端口索引从0开始的输出端口的宽度,并且必须小于输出端口的数量。
C,C ++
请参阅S功能sfun_zc.c
在sfcndemo_sfun_zc
和s功能sfun_dtype_io.c
在sfcndemo_dtype_io
。