LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Levenberg Marquardt, phase-frequency characteristics analysis

Hi, i`ve got a problem with function on wavegraph (atan). Is there any way to get rid of this middle line in between of the waveform? Or is it a problem with used data from accelerometer 

Kizia_0-1734618743729.png

 

0 Kudos
Message 1 of 7
(113 Views)

Hi Kizia,

 


@Kizia wrote:

Is there any way to get rid of this middle line in between of the waveform?


Yes, there is.

Insert a NaN where you want to "split" the interpolation line…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(107 Views)

@GerdW wrote:

 


@Kizia wrote:

Is there any way to get rid of this middle line in between of the waveform?


Yes, there is.

Insert a NaN where you want to "split" the interpolation line…


While this will cosmetically solve the display problem, you mention Levenberg-Marquardt in the subject, so I assume that you maybe want to apply a non-linear fit to it. For that you need to eliminate these points and maybe even tweak the model.

 

Your data looks does not look like an atan function at all. What is the actual model you are trying to fit? What does the data represent? What parameters are you trying to get out of this? To me it almost looks like the raw data (before scaling) are signed integers and you interpret them as unsigned, causing wrapping. You need to fits that! Once you do, it will look like part of an atan function!

 

Can you attach your VI containing typical data?

0 Kudos
Message 3 of 7
(84 Views)

You mentioned "this middle line in between of the waveform".

2024-12-19_11-10-07.pngDid you mean the vertical yellow line whose "foot" is where the red arrow is pointing?  I think that it might be a cursor placed at the "peak" of the curve, where the green arrow is pointing (it is clearer in your larger picture -- it has symbol that I think is a cursor, and shows the horizontal (yellow) and vertical (also yellow) lines so you can see how the cursor position "fits" with the rest of the plot.

 

Bob Schor

0 Kudos
Message 4 of 7
(68 Views)

As I said, your problem is with incorrect interpretation of the measurement data.

 

Study this! You want the interpretation on the right! (This demo assumes 8 bit data, but can be adapted for any other number of bits)

 

altenbach_0-1734625759496.png

 

0 Kudos
Message 5 of 7
(65 Views)

Hi

 

LabVIEW ( not base development system ) includes the VI :

 

Unwrap Phase VI

 

It does the same as Altenbachs solution, eliminating the phase jump.

 

Regards

0 Kudos
Message 6 of 7
(39 Views)

@softball wrote:

Unwrap Phase VI

 


Agreed, but that is correcting for an earlier mistake. It is significantly better to solve it upstream.

 

Hard to tell what's better without seeing the entire code. 😄

0 Kudos
Message 7 of 7
(28 Views)