question

Adam J avatar image
0 Likes"
Adam J asked Joshua S commented

Sending message queue/processor

I have a processor that processes items and send them to queue. How can I close the port of a processor once a determined quantity of items (10) is stack in queue ? Can someone tell me how to do that ? I tried to send message to processsor so it closes its port but I couldn't put the condition regarding the content. Thanks in advance

FlexSim 18.0.8
processorqueue content
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Clair A avatar image Clair A commented ·

Hi Adam, if you want the training material in French, you can send us an email at [email protected]. In the training material there are several sample models, including a model focused on how to create a logic to close/open ports.

1 Like 1 ·

1 Answer

·
Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered

@Adam J The easiest solution is setting the max content of queue to 10. Then the processor can not send the product on. If you want to get the content of an object you can use the following code in one of its triggers:

int content = current.subnodes.length;
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.