question

Steven Chen avatar image
0 Likes"
Steven Chen asked Phil BoBo commented

Issue Report : AGV Travel Home on Simulation Start

Hello,

I found an issue. AGV may cause error on simulation start if it travels home on resource available.

Use new condition of v20.1 may bring missing label error.

Use old condition of old version may cause error from distancetotravel().

agv_travel_home_error_v20.1.fsm

FlexSim 20.1.1
flexsim 20.1.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.

1 Answer

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo commented

@steven.chen,

The missing label error is a bug with the header of the On Resource Available trigger. This has been fixed for the next bugfix release. You can fix it manually in your model by changing "Object resource" in the header to "Dispatcher resource."

The code is trying to access the taskSequences property on the Dispatcher class. When using an Object, it thinks that property is a label name instead.

agv-travel-home-error-v201_1.fsm


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

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

The distancetotravel() exception is happening because it is trying to calculate the distance to a control point that it hasn't built a route to yet.

If you run the model until the AGV has traveled to the source, then it will stop throwing this exception on subsequent runs.

I'll add a case to the dev list to look into this.

Thanks for bringing this to our attention.

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.