question

Khalid Kayal avatar image
3 Likes"
Khalid Kayal asked Khalid Kayal commented

Why does the result change when the run speed changes?

transship.fsmWhen I run the attached model at a speed of 1000 for example I get only 8 items in the current content result chart in the dashboard. Whereas, when the I run at max speed, the result content increases significantly to 208, I was wondering how the speed of the run has a significant impact on the model's results?!

FlexSim 17.0.0
resultsrun speed
transship.fsm (307.3 KiB)
5 |100000

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

Phil BoBo avatar image
8 Likes"
Phil BoBo answered Khalid Kayal commented

The problem is that you are loading from a conveyor while the item is moving.

This is explained in the User Manual section FlexSim Concepts > Model Repeatability > Item Locations:

In the Custom Code trigger before your Load activity, call:

updatelocations(token.item);

updatelocations.png (296.5 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.

Khalid Kayal avatar image Khalid Kayal commented ·

That solved the problem. Thanks a lot Phil

0 Likes 0 ·
Steven Hamoen avatar image
1 Like"
Steven Hamoen answered Khalid Kayal commented

@Khalid Kayal

The only reason I can think off, for this to happen is, if you have code that works on the ondraw. If you run your model very fast this code is only executed a few times while if you run it slowly it happens a lot during your run. So I have taken a look at your model and the only "strange" thing I noticed is that you dynamically add operators to a group and then make them visible with the function switch_hideshape() I'm not sure how and why but this could be a possible problem.

If you are looking at the amount of operators you need, you could also point your resource to 1 operator and by changing the Count, Flexsim will automatically create the right amount of operators, instead of dynamically adding operators to a group.

· 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.

Khalid Kayal avatar image Khalid Kayal commented ·

Steven, thanks for your answer, I'll mess around with it. The reason of me creating a new group because I'm interested in showing a utilization chart for only the one's who actually worked so I can get an accurate overall utilization. The switch hideshape function was used to have a cleaner model.

0 Likes 0 ·

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.