LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph multiplot by "for" loop

Hi, All,

 

I have a questions about XY graph. Please kindly see the block diagram attached.

This question is from the same project and is similar to that I asked before: http://forums.ni.com/t5/LabVIEW/XY-graph-multiplot/m-p/1679222/highlight/true#M597705

However, now, at each iteration, the program will generate two sets of X-Y data: one measured and one fitted (polynomial fit to the measured data), and I wanted to plot all sets of X-Y data inside one graph.  According to the answers that I got from last thread, I am able to plot all the curves into one plot. However, this time is about the legend. How can I assign two plot names at each iteration-say after first iteration, the two curves should be "-1 measured" and "-1 fitted"? Right now, the result is as attached.

 

Thanks,

Joyce

Download All
0 Kudos
Message 1 of 2
(2,306 Views)

Hi Joycezh,

 

I have a attached a link to a knowledge based article that describes how programmatically set the names of multiple plots.

 

http://digital.ni.com/public.nsf/allkb/ED4C3D050516FC15862575240034D76A?OpenDocument http://digital.ni.com/public.nsf/allkb/ED4C3D050516FC15862575240034D76A?OpenDocument 

 

Let me know if this helps,

 

Regards,

 

Josh Brown

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,275 Views)