主要内容

ssWriteOutputString

编写C字符串输出端口

自从R2020b

语法

空白ssWriteOutputString (int portIdx SimStruct *年代,const char_T * str)

参数

年代

SimStruct代表一个功能块。

portIdx

端口写字符串。

str

字符串写入输出端口。

描述

ssWriteOutputString写一个以null结尾的字符串C字符串输出端口数据类型。

限制

非内联S-functions包含字符串SimStruct函数不使用快速加速器运行模式。

语言

C, c++

例子

这个例子写一个字符串,str输出端口0。

const char * str =“输出字符串”;ssWriteOutputString(年代,0,str);

版本历史

介绍了R2020b