how to get the port data inside a mask editor parameter/variable of a subsystem ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ajay Pherwani
am 6 Jun. 2014
Kommentiert: Ajay Pherwani
am 10 Jun. 2014
Want to read a data on port in the mask editor . I have an script running (which is called in mask editor),depending upon the value of port my script will work ! It has to read the values during run time !
0 Kommentare
Akzeptierte Antwort
Kaustubha Govind
am 9 Jun. 2014
Do you mean that you need the mask to be updated at runtime? Could you please expand a use-case a bit more? AFAIK, the mask cannot be refreshed during runtime. As stated in this blog post:
In addition to running when you click OK or Apply, mask initialization runs at the start of every simulation and update diagram, when you call set_param to modify the block, and when you are building the model as you drop the block into the system.
In general though, you can use the technique described in the documentation for Access Block Data During Simulation.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Author Block Masks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!