Calculate Travel time in Simulink

2 visualizaciones (últimos 30 días)
하람 오
하람 오 el 4 de Mayo de 2021
Editada: 하람 오 el 17 de Mayo de 2021
I would like to know the Travel Time form 'entity generator' to 'entity terminator'.
I would like to see the total Travel Time from the Generator~Terminator of entity according to the service time difference.
Is there a 'Statistics' that calculates the Travel Time of individual entity?
Or is there such a way?
For example, assume that entity is a customer and I want to know the total time customer(individual customer) generator~customer out(terminator)

Respuesta aceptada

Abdolkarim Mohammadi
Abdolkarim Mohammadi el 5 de Mayo de 2021
Editada: Abdolkarim Mohammadi el 5 de Mayo de 2021
You need to create an attribute to stamp the generation time, and another to stamp the termination time. The difference between the two indicates the time that entity has spent in the system. In order to stamp times, you should create a Simulink function in which there is a Digital clock block with the sample time set to -1.
  1 comentario
하람 오
하람 오 el 17 de Mayo de 2021
Editada: 하람 오 el 17 de Mayo de 2021
Thank you for kindness answer.
But I have some questions.
  1. How create an attribute to stamp the generation time?
Is it right...?
2. This is digital clock in simulink function.
Is it right?
And, What should I do next?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Discrete-Event Simulation en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by