在Simulink中创建子系统时,请关闭内容预览
我有一个生成子系统的脚本,我想关闭内容预览。我的脚本具有以下行:
add_block('内置/子系统',[sys'/subsystema'],'位置',[1150 100 1400 980],'attributesformattring','' ;','tag','5.0.0','contentPreviewEnabled','off');
这在R2019B中不起作用。有什么建议吗?
I have a script that generates a subsystem and I want to turn off the Content Preview. My script has the following line:
add_block('built-in/Subsystem',[sys '/subsystemA'],'Position',[1150 100 1400 980],'AttributesFormatString','Version: %<Tag>','Tag','5.0.0','ContentPreviewEnabled','off');
This is not working in R2019B. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在创建块之后,请尝试设置
contentPreviewEnabled
标志。我已经在R2018B和R2020A(我已经安装的内容)中尝试了您的初始命令,但无法重新创建任何问题,而内容预览未关闭。
Try setting the
ContentPreviewEnabled
flag after the block has been created.I've tried your initial command in R2018b and R2020a (what I have installed) but was unable to recreate any issue with the content preview not being turned off.