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.

Kari Payton avatar image Kari Payton commented ·

@Linda N what's interesting is that I ran the "niet" model in 18.2 and it works. If you need a fix quickly you can run on newer version of the software instead. Sorry I couldn't figure out what is wrong with the model in 18.1.

0 Likes 0 ·
Linda N avatar image Linda N Kari Payton commented ·

Thanks anyway Kari!

0 Likes 0 ·

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.

Linda N avatar image Linda N commented ·

Hi Joshua, you are right, it is working correctly. In the visuals it seemed that the processors only handling one at a time, but when I took a look at the content counter I discovered there was no problem. Sorry, next time i'll close the topic after the problem is resolved! Thanks for your help anyway!

0 Likes 0 ·