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