LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help using linear fit sub vi

Hello All,

I have an application in LabVIEW that is almost complete.  It takes vibration data from a rotor that is to be balanced and permits the user to take all prox probe readings, magnitude and phase.  After the trial vibration runs, it calculates the influence coefficients and comes up with a set of correction weights that indicate how much weight at which radial location will work for that probe location.  The end result is to take all four of these solutions and perform a liner least squares fit on them to give the user the 'best fit' correctoin weight to satisfy all four.  Here is the resulting compass plot indicating a very nice grouping of the results.  I may add an addtional option where the user can exclude one that is an outlier.  Any help is greatly appreciated.

 

Single Plane Multiple Sensor Results copy.jpgSingle Plane Sensor Results.jpg

 

 

0 Kudos
Message 1 of 5
(246 Views)

Hi Coryman,

 


@Coryman wrote:

I may add an addtional option where the user can exclude one that is an outlier.

Any help is greatly appreciated.


Help for what?

  • What is your question?
  • Where's your code?
Best regards,
GerdW


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

I don't see what this has to do with a linear fit. You have a bunch of vectors and try do a weighed average, I guess. Nobody forces you to use the linear fit subVI.

 

As a first step, show us your code (make sure all controls have typical default data, e.g. a shown in the picture).. Also point us to a website that explains the experiment.

 

0 Kudos
Message 3 of 5
(186 Views)

I've attached my vi.  There are two input arrays that represent the magnitude and phase from four proximity probes, X and Y on both ends of the rotor.  I've calculated the resultant vectors that represent the change in magnitude and phase as a result of the trial weight and also the influence coefficients.  I then calculated the correction weights for all four probes and plotted them on a compass plot.  I did a simple arithmetic averge of the four weights as well as the four weight locations.

I was informed this is not as accurate as performing a linear least squares fit which I attempted to do using the Resultant Vector results and the Influence Coefficient results.

I must confess I am way in over my head here but I can't get any help from anywhere.  

Any support is greatly appreciated.

 

0 Kudos
Message 4 of 5
(91 Views)

Hi Coryman,

 


@Coryman wrote:

Any support is greatly appreciated.


Unfortunately your VI misses ALL subVIs from that "08029 IPS Software" folder…

 

Do you know how to ZIP a complete folder?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(65 Views)