Help with Simulink system?

2 views (last 30 days)
Kjartan S
Kjartan S on 2 May 2013
Hi everyone,
I have been using matlab for some time now but I just recently discovered Simulink and I could use it for my work. If I just create a small example here could some one please guide me through the basic steps of Simulink ? That is how to put in arrivals, queing, servers and adding servers etc. I only found a bunch of electrical system simulations online.
Lets say we have a 24/7 gun range with four booths to shoot from, we have been having some waiting times recently and because we are a good company we want to make sure that we never have waiting time and our customers arrive every time of the day with the following measurement:
Time 1 2 3 4 5 6 Quantity 4 5 12 22 8 5
How is this done in Simulink ? basic system and we want to see what effect it has if we increase the servers, we want to have no one waiting.
Thanks, all the best.

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 3 May 2013
Based on your problem description, it seems like SimEvents is the right product for you to use. Look under the "Videos and Examples" pane to learn more about how you might be able to apply this to your problem.
  2 Comments
Kjartan S
Kjartan S on 4 May 2013
Thank you so much, exactly what I was looking for. Although having watched all of the videos I am having one small problem with the entities arrivals <http://www.mathworks.se/matlabcentral/answers/74632-simevents-invalid-entity-intergeneration-time-causes-block> All help is so appreciated :) Thanks
Kaustubha Govind
Kaustubha Govind on 6 May 2013
Kjartan: Sorry, I don't really have experience with SimEvents, just familiar enough to know that it is the right solution for your problem. I'd suggest that you wait for a day or two to see if someone with experience will answer your question (you posted over the weekend, when a lot of people are inactive). Otherwise, please contact MathWorks Tech Support.

Sign in to comment.

More Answers (1)

Babak
Babak on 2 May 2013
In Simulink, equations are integrated in time. Your system doesn't seem to have governing (continuous or discrete) equations, instead you have relation in the form of if.. else.. (I'm not sure, you may want to elaborate more on this). If you agree with me, I think you need to use "stateflow" instead of Simulink.
  2 Comments
Kjartan S
Kjartan S on 2 May 2013
I am very sorry I forgot to include the average service time on each booth is 15 minutes. But I will take a look at stateflow,
Kjartan S
Kjartan S on 2 May 2013
Thank you for your answer

Sign in to comment.

Categories

Find more on Discrete-Event Simulation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!