LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does labVIEW have a function to solve the following math problem?

In Labview what is the easiest way to solve the following problem?

 

 

|----             ---|  -1       |--     ---|                |--       --|

|  1   1   0       |            |   a     |                |    x     |

|  1   0   1       |            |   b     |     =         |    y     |

|  0   1   1       |            |   c     |                |    z     |

|__             __|            |_       _|                |_       _|

 

from the equations:

 

     a = x + y

     b = x + z

     c = y + z         where a, b, c are know values.    The problem I actually have is a system of 9 equations.

 

Thank you.

0 Kudos
Message 1 of 8
(3,901 Views)

LabVIEW includes a variety of linear algebra VIs that are useful for problems like this.  Take a look at the Solve Linear Equations VI.

 

Chris M

0 Kudos
Message 2 of 8
(3,888 Views)

I dont really see how I can apply the VI that you suggested to solve my problem.

0 Kudos
Message 3 of 8
(3,878 Views)

You have a known matrix, a known vector, and a vector you need to solve for given the equation Ax = b.  This is exactly the problem this VI is designed to solve:

solve lin alg.png

With the values I made up for a, b, and c, the solution is [2, 3, 4].

 

Chris M

0 Kudos
Message 4 of 8
(3,871 Views)

The values of the matrix are not known, so I'm trying to use an inverse square determinant to solve the problem.

0 Kudos
Message 5 of 8
(3,866 Views)

I think you'll need to better clarify exactly what you are trying to solve.  Your original post suggests that the values of x, y, and z are the only unknowns.  If you're given a set of equations like (a=x+y, b=x+z, c=y+z) then that is indeed the case, and the solution I mentioned will work.  If that's not the case, then please be as detailed as possible in describing the actual problem you're working on.

 

Chris M

0 Kudos
Message 6 of 8
(3,861 Views)

In my application I'm trying to find inductance values in a circuit. Basically the circuit is a three phase motor and I can only measure the paths between sets of coils. to calculate the individual component values. So I dont have coefficients to enter in the top matrix as you've shown. That's why I was trying to use a square determinant.

0 Kudos
Message 7 of 8
(3,856 Views)

@chuck72352 wrote:

 So I dont have coefficients to enter in the top matrix as you've shown.


But those are the coefficients you provided in your example!  So if you don't have them, how were you able to provide them?

Message 8 of 8
(3,851 Views)