George Lee wrote:
> Hi Dave,
> Thank you for your reply!
> In one chart, the software can display the selected traces. The
> problem is I need a "stack plots" like user interface and hope the
> number of plot areas can change alonge with the number of input signal
> during running time.
No go for a lot of reasons. The first one is the inherent allocation of
the chart buffer in a chart control. The second one is that each plot
area has things like scales and other data which needs to be allocated
for. The way the chart control is implemented these are all things which
require a recompile and you can't recompile a running VI nor can you
recompile in an executable.
> I believe Jcrooke's method of using picture control is a solution for
> it. Be
cause it needs a lot of work, I didn't try it.
> It seems that you have simple method to handle this. Can you tell me?
Well, it is indeed a lot of work and I would not attempt to even try to
do it. It seems to much work in comparison to what you get. What I did
in the past was a screen with 1, 4, and 9 graphs on it and depending on
the user selection, I displayed them accordingly. The data was
maintained in an intelligent global (functional global VI) to allow for
chart behaviour. It used a circular buffer internally, to avoid
performance loss due to moving all the data everytime new data was
added. Worked perfect and the only heavy work was the functional global
VI with its circular buffer but that is something which can be done in a
day or two.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390