主要内容

ssGetOutputPortOffsetTime

获取输出端口的偏移时间

语法

real_T ssgetoutputporttoffsettime (SimStruct *S, int_T outputPortIdx)

参数

年代

SimStruct表示s功能块。

outputPortIdx

输出端口索引。

返回

一个real_T值,该值指示由索引指定的输出端口的偏移时间outputPortIdx

描述

在任何程序中使用(除了mdlInitializeSizes)以确定输出端口的偏移时间。只有在指定了基于端口的示例时间时才应该使用此宏。

语言

C, c++

例子

看到这个功能sfun_multirate.c中使用的sfcndemo_sfun_multirate

之前介绍过的R2006a