question

Linda N avatar image
0 Likes"
Linda N asked Ben Wilson converted comment to answer

Custom code blocks other code

Hi all,

I encountered a problem when inserting custom codes in connected objects. I entered code in the On Reset trigger of all white processors, setting their max content to the value of a global variable (which can be changed on model reset). This works, as you will see in the enclosed model "wel". However, as soon as I add custom code in the Send To Port input of the WaitingAtPackStation queue, the processors start handling one item at a time again, even though in the tree properties I still see the higher numbers I set in maxcontent, as you will see in the enclosed model "niet". Can anyone tell me why is this is happening? Both are crucial to model the situation accurately. Thanks! wel.fsm niet.fsm

FlexSim 18.1.1
queueprocessorcustom coderoutingmax content
wel.fsm (25.6 KiB)
niet.fsm (25.8 KiB)
· 2
5 |100000

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

1 Answer

Joshua S avatar image
0 Likes"
Joshua S answered
@Linda N

It looks like it is handling more than 1 item for each processor, I dragged out the items that are being processed to show they are processing more than 1. This is of course showing it further into the model run time, is there an issue you are noticing it at a specific time?


pic1.png (513.3 KiB)
· 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.