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
|
|||
|
|||
Exception when finish travelling
Hi Guys,
I have a very simple model that has a user command being called in the on reset and on message of my custom Dispatcher which sends the task executer to travel to the source and then to the destination. An exception is being thrown right after the task executer finishes travelling to the source and the model stops (See below). Code:
time: 0.672658 exception: Exception Caught in TaskExecuter::onDestinationArrival(double finalspeed) object: /Truck time: 0.672658 exception: Exception Caught in NetworkNavigator::finishTravel(treenode reqnode, int blocking DEFAULTZERO) object: /DefaultNetworkNavigator time: 0.672658 exception: Exception Caught in NetworkNode::pushTraveler(treenode reqnode, NetworkNode* tonetnode, int nextport) time: 0.672658 exception: Exception Caught in NetworkNode::receiveInputRequest(treenode reqnode, int port, int lastport) object: /NN5 time: 0.672658 exception: Exception Caught in NetworkNode::releaseTraveler(treenode reqnode) object: /NN4 time: 0.672658 exception: Exception Caught in NetworkNode::onTimerEvent(treenode involved, int code, char *datastr) object: /NN4 time: 0.672658 exception: Exception Caught in ObjectFunction232__project_library_FlexSimObject_behaviour_eventfunctions_OnTimerEvent object: /NN4 i: time: 0.672658 exception: Exception caught in eventlogmanager::logevent() time: 0.672658 exception: Exception caught in eventlogmanager::logevent() time: 0.672658 exception: Exception caught in TreeNode::receivemessage() time: 0.672658 exception: Exception caught in executive::processeventinlist(). Throwing. time: 0.672658 exception: Exception caught in executive::steptotime(). Throwing. time: 0.672658 exception: Exception caught in executive::tick(). Throwing. time: 0.672658 exception: int runthemessageloop() #4 exception: core->theexecutive.tick(); time: 0.672658 exception: int runthemessageloop() #6 Thanks, Andre. |
#2
|
||||
|
||||
Hello Andre,
maybe you have optimized your tree a bit. I am missing a DefaultNavigator object in the model tree. Sometimes it is important that the different objects aren't ordered alphabetically. Best you build your model again without reordering the tree. And you look at the post of Phil how to find an error. Jörg |
#3
|
||||
|
||||
Hello Andre,
The model work properly if you don't call your function in the OnReset Trigger of the Dispatcher first. Instead you send there a delayed message to the dispatcher himself and the sending object in the command is the Taskexecuter. Code:
senddelayedmessage(current,0, centerobject(current,1)) Jörg Last edited by Jörg Vogel; 02-18-2014 at 05:52 AM. Reason: I was wrong |
The Following 4 Users Say Thank You to Jörg Vogel For This Useful Post: | ||
Tom David (02-18-2014) |
Thread | Thread Starter | Forum | Replies | Last Post |
Exception Caught | Sung Kim | Q&A | 1 | 05-14-2013 11:39 AM |
relative travelling | Shahin Gelareh | Q&A | 3 | 06-07-2012 08:44 AM |
Finish product before scheduled downtime | Jens Mühlheimer | Q&A | 2 | 05-22-2012 06:52 AM |
Strange exception | Shahin Gelareh | Q&A | 1 | 04-04-2012 11:57 PM |
ObjectFunction Exception | David Chan | Q&A | 5 | 07-17-2009 09:08 AM |