I want to enter the next batch after ejecting all items

I want to enter the next batch after ejecting all items

__ANON_USER__1
Not applicable
13 Views
5 Replies
Message 1 of 6

I want to enter the next batch after ejecting all items

__ANON_USER__1
Not applicable

[ FlexSim 20.1.3 ]

I want to enter the next batch after ejecting all the items being processed by the processor.

I have set current.subnodes.length == 0 to the condition, but it doesn't work.


What's wrong?

How can I fix it?



0 Likes
Accepted solutions (1)
14 Views
5 Replies
Replies (5)
Message 2 of 6

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

The content of a processor is still 1 when a last item leaves.

Test it on your own on exit

print(current.subnodes.length); 
0 Likes
Message 3 of 6

__ANON_USER__1
Not applicable

Changed to "current.subnodes.length == 1" so that one content can be port-opened.

But after 214 seconds the simulation freezes.


What's wrong?


0 Likes
Message 4 of 6

joerg_vogel_HsH
Mentor
Mentor

anonymous user, EDIT: I have looked into your model, and it behaves absolutly strange. It processes 2 batches. First batch released with a max wait timer, second batch with a max wait timer and then the model stopps unexpectingly.

It doesn't matter wether you check a content of the processor to open the input nor if you check a label of an item.

0 Likes
Message 5 of 6

joerg_vogel_HsH
Mentor
Mentor

next approach: On End Collecting trigger I assign a label at the last item of current batch. The batch is transferred directly to the processor or to a bypass queue. The label is responsible for closing and opening the input of the processor.

process_batch_JV.fsm

0 Likes
Message 6 of 6

jason_lightfootVL7B4
Autodesk
Autodesk

Hi anonymous user, was Jörg Vogel's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes