question

Stefano Crotti avatar image
0 Likes"
Stefano Crotti asked Stefano Crotti commented

Strange cpdistance exception/behavior

Hi,

I do not understand why I'm getting this exception in my model's AGV network.

Resetting and running the model I get this exception:

time: 266.037567 exception: Exception caught in TreeNode::callMemberFunction() c++/dll execution. Throwing... MAIN:/project/exec/usercommandlist/AGV/cpdistance/node c: MAIN:/project/exec/usercommandlist/AGV/cpdistance/node i: MAIN:/project/exec/usercommandlist/AGV/cpdistance/node thisClass: MAIN:/project/exec/usercommandlist/AGV/cpdistance/node
time: 266.037567 exception: Exception caught in evaluation of MAIN:/project/exec/usercommandlist/AGV/cpdistance/node
time: 266.037567 exception: Exception Caught in dispatchtasksequence(treenode tasksequence, treenode dispatcher DEFAULTNULL)

The CP that causes the error is the ControlPoint1746:

cp-errors.png

in fact, if I run this script I get the same exception:

Object cpFrom = Model.find("ControlPoint1745");
Object cpTo = Model.find("ControlPoint1746");
return cpdistance(cpFrom, cpTo);

The strange thing is that if I show the route accesibility, the ControlPoint1746 can be reached from the ControlPoint1745.

cp-errors1.png


The very strange thing is that if:

  • I open the model
  • I press reset
  • Execute the previous script (before running the simulation)

The script gives me no exception:

1649322475528.png

and the simulation runs fine, even if I reset and run the model several times.

Could you explain me why my system behaves in this way?

Thank you

Stefano

FlexSim 22.0.1
agvagvnetworkcontrolpointcpdistance
cp-errors.png (40.3 KiB)
cp-errors1.png (59.0 KiB)
1649322475528.png (8.0 KiB)
· 3
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
We would need the model for someone to take a look.
1 Like 1 ·
Joerg Vogel avatar image Joerg Vogel commented ·
I guess, it is the way this module stores a route mapping while it is running. There was a time with FlexSim, when you were able to achieve a different behavior by changing the rank of objects in the model tree. The control point number is an indicator of the model rank. I assume 1746 is behind 1745. If you set 1745 to get an greater rank number than 1746 this can resolve this problem.

But my personal opinion on an AGV Network is, the best supported layout is a design of one direction paths. Only short trunks of one allocatable control point is allowed. You can compare it with a railway network.

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark commented ·

Hi @Stefano C2,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Stefano Crotti commented

Using another model, we found and fixed a bug in the AGV module with the routing table not being calculated at a certain point when pre-empting, which leads to this type of exception in cpdistance().

This will be fixed in the next bugfix release of FlexSim (22.0.3).

Although you didn't provide a model so that we can verify that the bugfix will fix your model specifically, I suspect that it will.

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

Stefano Crotti avatar image Stefano Crotti commented ·

You are right, we have this problem and I contacted our local distributor about this issue.

I'll wait for the update then.


Thank you

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.