Is there any way to repoen an XY Graph during a simulation once you have closed it?

1 次查看(过去 30 天)
Is there any way to repoen an XY Graph during a simulation once you have closed it?

回答(1 个)

Abhishek Gupte
Abhishek Gupte 2012-1-11
No. This is why: 1. 'Look Under Mask' of the XY block. It is an S-function block;
2. During the initialization stage of the S-function block, a MATLAB figure window is created. Once the model simulation starts, the update method of the block is called at each time step and the data is plotted into the axes of this figure;
3. If the figure window is closed, the figure handle is destroyed and the S-function does not have an axes to write data to;
4. It is not possible to have a parameter that will re-open the figure because the XY block sets all the figure properties during initialization;
5. You can try to rewrite the S-function and provide a parameter that listens to whether the figure is open or not and another parameter that allows you to open a new figure during block update. Good luck!

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by