Where to start coding Simulink blocks for SimEvents

2 visualizaciones (últimos 30 días)
Pieter Cuijpers
Pieter Cuijpers el 19 de Nov. de 2014
Respondida: Mo Zhao el 18 de Abr. de 2016
I would like to build my own SimEvents blocks. In particular, I would like to build blocks that represent the basic elements of a Petri-net. The basic behaviour I can mimick using standard blocks, but I cannot use the subblock feature because I would like to have parameters in the mask that control the number of ports.
Where should I start to learn how to program this? Any pointers?
Thanks in advance, Pieter

Respuestas (2)

Raul
Raul el 20 de Abr. de 2015
Hi Pieter,
I just saw your question. I have had the same intention few months ago. So I developed a library for building Petri Net models within a Simulink model. I saw interesting results from the simulations with the library. So I posted the library and the source code for further development by the Petri Nets enthusiasts. The link is
https://www.mathworks.com/matlabcentral/fileexchange/50571-petri-nets-building-blocks-library
Please let me know if it is useful for you.
Regards... RCR

Mo Zhao
Mo Zhao el 18 de Abr. de 2016
Hi,
Our R2016a shipped MATLAB Discrete-Event System in the new SimEvents library. It would be the best choice to write a custom block. To get started quickly, you can use the deign pattern or look at the examples at http://www.mathworks.com/help/simevents/examples.html#d0e170.

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by