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
|
|||
|
|||
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
|
|||
|
|||
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
|
||||
|
||||
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 |