全球FlexSim系统仿真中文论坛

搜索
查看: 3823|回复: 4
打印 上一主题 下一主题

关于closeop & closeip

[复制链接]
跳转到指定楼层
1#
diabloma 发表于 2010-9-1 16:24:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
为何closeop和sloseip无法关闭或打开指定端口号~~而closeoutput和closeinput却可以,但是会关闭或打开所有的端口号,达不到端口号控制。
2#
 楼主| diabloma 发表于 2010-9-2 10:31:24 | 只看该作者
closeop(obj object, num outputportnum) Description:?? Close just outputportnum of object. Closing an output port of an object will block the exit from the object through that port. Modelers should only use this command when working with fluid objects because the internal behavior of discrete objects controls the opening and closing of their ports, and therefore this command may be overridden. For discrete objects the modeler is referred to closeoutput() and stopoutput().
0 R* b/ b8 V+ j; n  K  S# E& i* Y5 F2 B5 m1 z+ R$ d
看命令中的解释,红色Mark的部分说可能会overrideen??
3#
wj109260758 发表于 2010-9-2 10:41:11 | 只看该作者
Modelers should only use this command when working with fluid objects because the internal behavior of discrete objects controls the opening and closing of their ports,
% V: C& m3 z/ W- q' S0 `这2个指令用于液态实体
4#
 楼主| diabloma 发表于 2010-9-2 10:45:04 | 只看该作者
对于固态可以用吗?或则有其他什么方法可以实现端口的开关
5#
草果泉 发表于 2010-9-2 20:21:07 | 只看该作者
可以关闭与其连接的端口 间接实现。如果一个有多个output 连接另一个有多个input 我用的时候是往中间加了个暂存区来控制的。我做期末作业时候用了一次短的两个,在合成器里用的,当时是没有出现错误,不过,说明书肯定是有道理的。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|全球FlexSim系统仿真中文论坛 ( 京ICP备14043114号-2 )

GMT+8, 2024-5-16 01:35 , Processed in 0.077571 second(s), 14 queries .

Powered by Discuz! X3.3© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表