ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Error on distancetotravel command
Hi
I have encountered this error in ver 6 but the TE runs fine. time: 3475.610669 exception: Exception Caught in distancetotravel(fsnode* traveler, fsnode* destination) time: 3475.610669 exception: Exception Caught in ObjectFunction081__project_exec_commandlist_distan cetotravel_node object: MAIN:/project/exec/commandlist/distancetotravel/node class: MAIN:/project/exec/commandlist/distancetotravel/node Is there a bug in this area? Regards David
__________________
Advent2 Labs David |
#2
|
|||
|
|||
Sometimes you can get extra defaultNavigators or NetworkNavigators in your model by accident which cause problems. If it's not that, can you post the model or repeat it in a small example?
|
#3
|
||||
|
||||
Did you solve your problem of the error message?
I have the same or similar problem in my model.
The error messages are followed; Though the error open the System Console window and display the followed messages, the model is running... What causes this error? ======================================= time: 90.089824 exception: Exception Caught in NetworkNavigator::querydistanceextended(TaskExecut er* te, FlexsimObject* destobj, NetworkNode* ..... time: 90.089824 exception: Exception Caught in NetworkNavigator::querydistance(TaskExecuter* te, FlexsimObject* destobj) object: /DefaultNetworkNavigator time: 90.089824 exception: Exception Caught in TaskExecuter::querydistance(FlexsimObject* destination) object: /Floor_2F_CAD/Floor_2F_OHT/Kuatran5 time: 90.089824 exception: Exception Caught in distancetotravel(fsnode* traveler, fsnode* destination) time: 90.089824 exception: Exception Caught in ObjectFunction081__project_exec_commandlist_distan cetotravel_node object: MAIN:/project/exec/commandlist/distancetotravel/node class: MAIN:/project/exec/commandlist/distancetotravel/node ===================================== I have two groups of TE. One group of four TEs is located in second floor and another one group of four TEs is controled at third floor. Two groups moving are separated with each other. |
#4
|
||||
|
||||
You are probably passing NULL into the distancetotravel() command. You can use the event log to see exactly which event on which object is firing the exception.
|
#5
|
|||
|
|||
David,
The issue happens likely because you are using the default code in the TaskExecuter's OnResourceAvailable trigger for "travel to a home location". The home location default is centerobject(current,1). If you don't have anything connected to the TaskExecuter through a centerport connection, you will get this error because it is throwing NULL in to this function, and it cannot determine the distance to travel to NULL. |
The Following User Says Thank You to Cameron Pluim For This Useful Post: | ||
FlorianK (07-14-2014) |
Tags |
distancetotravel, taskexecuter |
Thread | Thread Starter | Forum | Replies | Last Post |
viewtofile command is slow | AlanZhang | Q&A | 0 | 04-09-2010 11:12 AM |
family command? | zhang xin | Q&A | 0 | 01-14-2010 06:33 PM |
Command getnextnetnodeoutport | Martijn van Oostenbrugge | Q&A | 0 | 02-22-2008 05:42 AM |
releaseitem command | AlanZhang | Q&A | 3 | 10-04-2007 10:11 AM |