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 09-19-2012
David Chan David Chan is offline
Flexsim Distributor
 
Join Date: Sep 2007
Posts: 326
Downloads: 74
Uploads: 0
Thanks: 217
Thanked 73 Times in 44 Posts
Rep Power: 218
David Chan has a spectacular aura aboutDavid Chan has a spectacular aura aboutDavid Chan has a spectacular aura about
Default 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  
Old 09-19-2012
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

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  
Old 04-07-2013
syseo's Avatar
syseo syseo is offline
Flexsim User
 
Join Date: Aug 2007
Location: Korea
Posts: 290
Downloads: 439
Uploads: 0
Thanks: 249
Thanked 63 Times in 41 Posts
Rep Power: 211
syseo has a spectacular aura aboutsyseo has a spectacular aura about
Default 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  
Old 04-08-2013
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default

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  
Old 04-09-2013
Cameron Pluim Cameron Pluim is offline
Steelcase, Inc.
 
Join Date: Apr 2012
Location: MI
Posts: 30
Downloads: 27
Uploads: 11
Thanks: 5
Thanked 34 Times in 20 Posts
Rep Power: 120
Cameron Pluim will become famous soon enoughCameron Pluim will become famous soon enough
Default

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


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.