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 > Tips and Tricks
Downloads

Tips and Tricks Share helpful modeling ideas

  #1  
Old 08-25-2012
Don Hart Don Hart is offline
Flexsim User
 
Join Date: Jul 2011
Posts: 1
Downloads: 1
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Don Hart is on a distinguished road
Question 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  
Old 08-27-2012
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

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


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.