ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 02-18-2014
andrecorreia andrecorreia is offline
Flexsim User
 
Join Date: Feb 2013
Location: Brisbane City
Posts: 12
Downloads: 12
Uploads: 0
Thanks: 11
Thanked 3 Times in 3 Posts
Rep Power: 89
andrecorreia is on a distinguished road
Default 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
The model is attached.

Thanks,
Andre.
Attached Files
File Type: fsm Test Model.fsm (21.0 KB, 52 views)
  #2  
Old 02-18-2014
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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  
Old 02-18-2014
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

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))
It is just a Runtime problem of the flexsim engine.

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)
  #4  
Old 02-18-2014
andrecorreia andrecorreia is offline
Flexsim User
 
Join Date: Feb 2013
Location: Brisbane City
Posts: 12
Downloads: 12
Uploads: 0
Thanks: 11
Thanked 3 Times in 3 Posts
Rep Power: 89
andrecorreia is on a distinguished road
Default

Thanks a lot Jörg!

You saved my day!!


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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.