[/quote]
Flexsim中还有命令可以打开、关闭指定的端口:openip、openop、closeip、closeop
。命令注释中说明此命令用于流体对象。离散实体内部行为会控制打开或关闭端口,可导致此命令失效。[quote]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. [/quote]
是否真的会失效呢?测试一下。
删除重置触发中的closeoutput命令,更改为[code]closeop(current,1);[/code]只关闭暂存区的第一个输出端口,重置模型看效果如何。