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
|
|||
|
|||
Experimenter and User Events
I have a User Events trigger that builds a global table as the model runs. When I run the Experimenter the User Events trigger does not build the table. Is the User Events trigger supposed to run while the Experimenter is running?
What do I need to do to build the table while the Experimenter is running? In versions 5 the User Events trigger would fire while the Experimenter was running. in Version 6.02 that does not seem to be the case. What do I need to do for the User Events trigger to fire while the Experimenter is running? |
#2
|
||||
|
||||
Your user events should be executing fine. Make sure FlexScript is built by going to main menu option Build > Build FlexScript before running the experimenter.
You can verify that your user events are executing by putting in print statements (using the pt() command). Prints executed in child experimenter processes will be stored in the tree in model/Tools/Experimenter/ConsoleOutput/scenario#/rep#/output. The problem is probably that you are simply writing data to the table in the child process but not moving that data back to the main process. The experimenter runs each replication on a different process and then collects the data in the performance measures. To see example code on how to collect custom data from a child process and send it back to the parent process, look at the Write to GlobalTable option in the End of Replication trigger. |
The Following 2 Users Say Thank You to Phil BoBo For This Useful Post: | ||
RalfGruber (08-28-2012) |
Tags |
experimenter, user events |
Thread | Thread Starter | Forum | Replies | Last Post |
Experimenter Export | Susan Pevovar | Q&A | 6 | 06-02-2011 05:20 PM |
Using the Experimenter | dabombchibz | Q&A | 2 | 04-02-2009 07:48 AM |
User Event as Experimenter? | ankus d | Q&A | 2 | 02-17-2009 08:06 AM |
Experimenter User Guide | davidubb | Gripes and Goodies | 1 | 06-03-2008 01:33 PM |
profileevents() and order of event nodes under project/exec/events | Tom David | Q&A | 3 | 05-15-2008 11:33 PM |