Why does the result change when the run speed changes?

Why does the result change when the run speed changes?

khalid_kayal1
Not applicable
43 Views
4 Replies
Message 1 of 5

Why does the result change when the run speed changes?

khalid_kayal1
Not applicable

[ FlexSim 17.0.0 ]

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?!

Accepted solutions (1)
44 Views
4 Replies
Replies (4)
Message 2 of 5

SCHamoen
Advisor
Advisor

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

Message 3 of 5

khalid_kayal1
Not applicable

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
Message 4 of 5

philboboADSK
Autodesk
Autodesk
Accepted solution

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:

6309-updatelocations.png

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

updatelocations(token.item);


Phil BoBo
Sr. Manager, Software Development
Message 5 of 5

khalid_kayal1
Not applicable

That solved the problem. Thanks a lot Phil

0 Likes