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
|
|||
|
|||
User Event as Experimenter?
Hi All..
I am quite a newbie in Flexsim, so i often ask in this forum. because, i want to explore my knowledge in Flexsim. I have another problem to ask. Suppose i have a simple model( source, queue, processor, sink); I wanna know the effect of different processing time in term of output. I know, i can deal this problem with experimenter, but it seem difficult to update experimenter with calculation. So, here i am curious about user event. I wanna build user event that can update variable (i.e processing time) through iteration in User event and write result of each iteration in global table. (ex: for (h=0; h<=5; h++) { double test = h+4; setvarnum("/processor3","value", test); etc.. } I want to use user event as experimenter in my model. Is it possible? Can share your knowledge to me...? can you give me example model? Thanks in advance Ankus Last edited by ankus d; 02-17-2009 at 02:22 AM. |
#2
|
|||
|
|||
I dont know if i understand it right.. but i looked into your example..
Code:
int h; for(h=1; h<=5; h++) { double test = h + 4; setvarnum("/Processor3","value",test); if(time()==200) { settablenum("GlobalTable01",gettablerows("GlobalTable01"),1,h); settablenum("GlobalTable01",gettablerows("GlobalTable01"),2,getinput("/Sink4")); } reset(); go(); } Another point is the time()==200, that mean that only if time (the simulationtime) is on 200 the if statement is executed.. The most important thing is, you fire this event on 0 and so the model run into nirvana.. At 0 the model will be reset and go and reset and go and reset and go etc. I modified your model a little bit.. maybe it gives you some ideas.. (Version 4.5, hope you can handle it). Its not the best solution, but it work.. best regards Tobias |
The Following User Says Thank You to tobias.biemueller For This Useful Post: | ||
ankus d (02-17-2009) |
Thread | Thread Starter | Forum | Replies | Last Post |
time event | Donatus Minio | Q&A | 8 | 02-17-2009 01:12 PM |
User Event firing - precision problems | Shankar Narayan | Q&A | 6 | 02-16-2009 07:01 AM |
Problem with user event | Yasemin Vatandas | Q&A | 2 | 08-06-2008 02:49 AM |
Experimenter User Guide | davidubb | Gripes and Goodies | 1 | 06-03-2008 01:33 PM |
question about User Event | Ning Wang | Q&A | 3 | 04-22-2008 10:56 AM |