Update attribute value with a frequency and use in matlab function
Ältere Kommentare anzeigen
Hello,
I have two attributes assigned to the entity in the entity generation, the current time in system and the priority. I want to update these attributes with a frequency, for example every day. These values will be used in the matlab function which determines to release the entity or not. Now the attribute value can only be updated when entering a block, while the entity stays until there is a positive message to release the entity. I saw this question but its an older version of simulink.. Does anyone know how to model this? Thanks
Antworten (1)
Naveed Ahmed
am 17 Sep. 2018
0 Stimmen
Here is what I can suggest based on my understanding:
Place your matlab function block in the "enable subsystem" and connect the square pulse generator (in case you want it periodically) with enable input of the Enable system input port. The pulse width and shape are easily modifiable from its properties.
Hope it helps.
1 Kommentar
Mehwish Ahmed
am 18 Sep. 2018
Kategorien
Mehr zu Discrete-Event Simulation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!