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
|
|||
|
|||
Road traffic
Hai,
I want to simulate road traffic. What is the option available to stop the flow items for a cetain time and release them. Say, I want to stop all the flow items at the edge of the conveyor for 20sec and open the output port for 10sec. I don't know why, the msg sending opion is not working on my system. Can I get suggestions please? |
#2
|
||||
|
||||
I used network nodes instead of conveyors to simulate road traffic. The problem that I have will require different speeds for that vehicles on the road, which cannot be achieved by using conveyor.
I do not quite understand what you want do here. But I made a simple model to close the output port of conveyor for 20 sec when a flow item reaches the edge and open it for 10sec. Then close it again when another item reaches the edge. The code is under Conveyor's OnMessage and OnConveyEnd trigger. Please see the attached model for details.
__________________
Best, Alan |
The Following User Says Thank You to AlanZhang For This Useful Post: | ||
Brandon Peterson (09-25-2009) |
#3
|
|||
|
|||
Thank you Mr. AlanZhang,
Unfortunately I could not see your model since I have Flexsim 3 only with me. Any how I could do the traffic model using 'send delayed msg' and 'onmsg' triggers. Thank you. Regards, Mallik. |
#4
|
|||
|
|||
hi there!
I opened a new thread before, related to this same subject. I hope you can help me. How can I use network nodes to simulate a traffic road? do I also have to use a TrafficControl object? Here is the post: http://www.flexsim.com/community/for...quote=1&p=4995 Last edited by Brandon Peterson; 09-25-2009 at 01:31 PM. |
The Following User Says Thank You to Fernando Igor For This Useful Post: | ||
Ilivid zheng (12-25-2010) |