LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use linear fit

Anyone here to help me how to use the linear fir vi?

 

Is this vi capable of analyzing a line with a negative slope?

 

What shold i input in this vi? I tried connecting my x and y arrays in this vi but still outputs nothing. Is there a bug on this vi?

 

Is there a way to fit a line in my data points like what excel does?

 

Thanks again for helping me numerous times.

 

 

 

 

 

 

Brein

Stuck again

0 Kudos
Message 1 of 23
(8,558 Views)

 


Brein wrote:

Is this vi capable of analyzing a line with a negative slope?


Yes!


Brein wrote:

Anyone here to help me how to use the linear fir vi?

...

What shold i input in this vi? I tried connecting my x and y arrays in this vi but still outputs nothing. Is there a bug on this vi?


See the help page. There is not bug! Please show us your VI so we can see what you are doing wrong. (make sure to include some default data).

0 Kudos
Message 2 of 23
(8,547 Views)
up this problem. Any suggestions on getting a linear fit like what excel does?
0 Kudos
Message 3 of 23
(8,545 Views)

LabVIEW can easily do linear fit. A linear fit is a rather trivial operation.

 

As said, show us your VI and we show you what you are doing wrong.

 

 

0 Kudos
Message 4 of 23
(8,543 Views)
This is my vi. I am using labview 7.0 and vision 7.0. This project is about finding a relationship between concentration of a certain solution and its color value using rgb space. I am already able to plot the relation ship found in sequence structure 3 of 3(assuming the first sequence is 0 of 3). How to put a linear fit in my data points?
Download All
0 Kudos
Message 5 of 23
(8,542 Views)

where are you?  still there?

0 Kudos
Message 6 of 23
(8,538 Views)

If you think this is very trivial, then maybe you give me a sample program

0 Kudos
Message 7 of 23
(8,534 Views)

Brein wrote:

where are you?  still there?


Hey, I am on the west coast and is was way past midnight for me. Even I need some zzz's once in a while. 😄

Message 8 of 23
(8,519 Views)

Brein wrote:
This is my vi. I am using labview 7.0 and vision 7.0. This project is about finding a relationship between concentration of a certain solution and its color value using rgb space. I am already able to plot the relation ship found in sequence structure 3 of 3(assuming the first sequence is 0 of 3). How to put a linear fit in my data points?

So you need to do a global fit to three datasets (R, G, & B). Since you seem to deal with a greyscale image, it is probably sufficient to fit only a single channel. What function do you use in excel?

 

Sorry, I don't have the vision module. Can you strip down your VI as follows:

 

  • create indicators on the three orange arrays in frame #2. (right-click wires, create indicator)
  • Run the VI so the indicators contain data.
  • Turn the indicators into diagram constants (right-click..change to constants). Wires will be broken, leave them broken!
  • Save the VI under a new name and attach it again.

 

I am quite busy today, maybe I can look at it tonight if nobody else gives a solution.

0 Kudos
Message 9 of 23
(8,516 Views)

Please see the example VIs for the Linear Fit VI. If you go to the context help for Linear Fit.vi, you can see a bunch of examples for this VI.

 

Also, I ran your code and no data is graphed.

Regards,
Claire Reid
National Instruments
0 Kudos
Message 10 of 23
(8,494 Views)