LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xy graph interpolation issue

 Hi all;

 

I'm looking for interpolation properties in XY graph. I really studied on. when I try to draw two or more curves on graph, it interpolates two curves. Actually, It connects by a line the end of first curve to tail of second curve. Please, tell me how to separate the curves. I attached output of graph and graph blocks. If it is required, I can choose curve fitting, can be useful. Please attach block diagrams that indicates your solution. I use Labview 7.

 

Thanks for your help

 

 

 

          

Download All
0 Kudos
Message 1 of 5
(3,822 Views)

Your miniature snippet of code doesn't really say anything other than the fact that you are creating an array of the same X and Y values. Why you are using local variables is a mystery. Please post your full code.

 

What exactly is there to interpolate on your curves? 

Message 2 of 5
(3,811 Views)

Seems you want to get rid of the "flyback trace".

 

Easiest would to insert an extra point containing NaN into your data whenever x jumps back. This wll suppress the line interpolation.

 

(Anyway, it almost looks lile your x values are equally spaced and the same for all plots. In this case you don't need an xy graph and a plain waveform graph will do just fine.)

Message Edited by altenbach on 09-16-2008 10:03 AM
Message 3 of 5
(3,789 Views)

Thank you very much altenbach for your help, I applied your advice. It works. there is another question. I want to use curve fitting for each curve in order to get rid of instability.Do you have any tip about this when I working on it..  I'll attach screen shot, includes curve fitting applied. 

 

Thanks again, You're great

0 Kudos
Message 4 of 5
(3,758 Views)

FaQ wrote:

I want to use curve fitting for each curve in order to get rid of instability.Do you have any tip about this when I working on it..  I'll attach screen shot, includes curve fitting applied. 


 

You have to be way more specific than that! 😄

 

On you image, I don't see any "curve fitting" just a cursor positioned at a somewhat random high point of the curve. In the text you say it includes curve fitting, but the filename is "without curve fit". So, what is it??? 😉

 

In order to curve fit, you need a mathematical model with a few fitting parameters (including estimates for them). Can you tell us a little bit more about the data? What kind of model do you have in mind? Do you have a formula? Are all curves independent or do you want to make a global fit, with e.g. one parameter varying according to some model as a function of each individual trace.

 

Can you attach your VI and some typical data?

0 Kudos
Message 5 of 5
(3,732 Views)