Custom code blocks other code

Custom code blocks other code

linda_n
Not applicable
847 Views
4 Replies
Message 1 of 5

Custom code blocks other code

linda_n
Not applicable

[ FlexSim 18.1.1 ]

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

0 Likes
Accepted solutions (1)
848 Views
4 Replies
Replies (4)
Message 2 of 5

kari_payton
Not applicable

@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
Message 3 of 5

linda_n
Not applicable

Thanks anyway Kari!

0 Likes
Message 4 of 5

joshua_s
Not applicable
Accepted solution
@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?

16861-pic1.png

0 Likes
Message 5 of 5

linda_n
Not applicable

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