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 11-02-2010
john mic john mic is offline
Flexsim User
 
Join Date: May 2010
Posts: 15
Downloads: 9
Uploads: 0
Thanks: 14
Thanked 0 Times in 0 Posts
Rep Power: 123
john mic is on a distinguished road
Post How to find where goes wrong quickly

In running flexsim model,if it stopped after you click "run",how to find where goes wrong quickly(which model setting need to be revised).Since there were so many objects,it is hard to check the settings,codes and etc. object by object.
  #2  
Old 11-02-2010
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

The biggest thing is probably make sure it's repeatable and and find the time when it occurs. If the model has just 'stopped' then the last event time is already shown on the clock. Then step through the model just prior to that time, looking at the debugger event list to identify the exact event where things go wrong.

Another general tip is to step through all non-trivial code you write with the debugger to verify it as correct. If you've got code repeated in many places through the model you might want to consider putting it into a user command that you call from many places - that will make it easier to manage and prevent errors slipping in.
The Following User Says Thank You to Jason Lightfoot For This Useful Post:
john mic (11-09-2010)
  #3  
Old 11-03-2010
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 can also turn on the Event Log and see what event happened right before something went wrong.

If you have an exception in your code, there will be a line in the event log showing that exception. The event immediately above the exception line is the code that threw the exception.
The Following User Says Thank You to Phil BoBo For This Useful Post:
john mic (11-09-2010)


Thread Thread Starter Forum Replies Last Post
some thing wrong with kinematics LINWEIXU Q&A 7 11-28-2009 05:34 AM
Where can I find Programming Language Reference ? Robert Liu Q&A 3 10-26-2009 02:40 AM
what is wrong my model LINWEIXU Q&A 7 08-17-2009 10:50 PM
Find all nodes toggled as C++ Brandon Peterson Tips and Tricks 0 04-18-2008 03:36 PM
How to find the idle time of the job/product? shivrash Q&A 5 04-09-2008 09:01 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.