Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Creating new model or block instances during run-time...
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am creating a model of a packet network (SimEvent and StateFlow) in which I have multiple transmitters and receivers. All transmitters are controlled by a single scheduler.
I would like to add new transmitters to the network during execution (e.g. click a button to add/remove transmitters).
Similarly, the scheduler needs to implement a poller for each transmitter instance. The poller is currently implemented in StateFlow.
Is there a way to create a model or block (the transmitter) and have new instances of it generated during run-time? If so, how?
Likewise, how would I instantiate a new poller instance when a new transmitter is created?
0 Kommentare
Antworten (1)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!