08-01-2014 07:45 AM
08-01-2014 08:36 AM
Can you show an example of what you mean?
Mike...
08-01-2014 08:51 AM
Mixed signal graph can contain multiple plot areas which you cannot add programmatically. You can add them in the edit time via the shortcut menu option "Add Plot Area". Because I don't know how many plot areas will I use in the run time, I will add 10 of them in the edit time. Idea is to hide unused plot areas in run time, however, I cannot find an option to do this in the run time.
08-04-2014 06:08 AM
Hello Andrej,
Unfortunately, there is no way to programatically hide unused plot areas during runtime. There is no property node for this; however, what you can do as a workaround to to minimize the space occupied by the unused plot areas is to set the Height of the PlotAreaSize Property of the given area to zero. Also, you should in this case hide the YLabel of that area. It will not hide the plot area completely, but it will not appear as a big empty chart on your front panel.
Here is an example of how you can do this, I hope it is helpful:
Best regards,
Izabela.
08-04-2014 06:33 AM
Thanks Izabela!
Actually I read the viewport height and then scaled the necessary plot areas to fill the whole viewport. That way all unnecessary plot areas were moved down and are not visible. To prevent user from scrolling down I hid the Y scrollbar.