Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想模拟一个有假期的队列。当队列为空时,服务器会有一定分布的假期。(我可以使用gate来阻塞服务器)所以我需要获取队列阻塞中实体数量的数据。你能告诉我该怎么做吗?
非常感谢。
“队列中的实体数量”可以在队列属性的“统计”选项卡中找到。
启用它(单击它的复选框)将启用可以连接到其他 Simulink 模块的模块 (#n) 上的感兴趣信号。
将#n 信号连接到“与常量比较”块以创建一个布尔信号,指示队列是否为 / 不为空。