全球FlexSim系统仿真中文论坛

标题: 关于closeop & closeip [打印本页]

作者: diabloma    时间: 2010-9-1 16:24
标题: 关于closeop & closeip
为何closeop和sloseip无法关闭或打开指定端口号~~而closeoutput和closeinput却可以,但是会关闭或打开所有的端口号,达不到端口号控制。
作者: diabloma    时间: 2010-9-2 10:31
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().
! \  D  ?7 n1 H! I! z/ p; [
+ g  O" X$ y6 Z: e4 F看命令中的解释,红色Mark的部分说可能会overrideen??
作者: wj109260758    时间: 2010-9-2 10:41
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,6 V/ s4 v) f# @
这2个指令用于液态实体
作者: diabloma    时间: 2010-9-2 10:45
对于固态可以用吗?或则有其他什么方法可以实现端口的开关
作者: 草果泉    时间: 2010-9-2 20:21
可以关闭与其连接的端口 间接实现。如果一个有多个output 连接另一个有多个input 我用的时候是往中间加了个暂存区来控制的。我做期末作业时候用了一次短的两个,在合成器里用的,当时是没有出现错误,不过,说明书肯定是有道理的。




欢迎光临 全球FlexSim系统仿真中文论坛 (http://www.flexsimasia.com/) Powered by Discuz! X3.3