LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parsing 2-D Array into Inverte Matrix error with Local Variabel

Hallo Community,

 

sorry for the banality of my question. I want to invert a Matrix.  I feed the invert matrix function with a local variable that is feeded throw a 2 D matrix. I have looked the process throw probes up and concluded that the Inverse matrix function spits a [0x0] matrix out. Could someone show me what i have done wrong :0

thanks for your help !!!

0 Kudos
Message 1 of 4
(2,988 Views)

Did you put valid data into your controls?

 

Right now all your controls are set at default values, including 0 for Array ?? control going to the N terminal of the For Loop.  If I put a meaningful value in there like 2, it works.  Anything else fails because you have hard coded inside that loop a 1-D array of 2 elements, so you wind up with a rectangular array that you can't invert.

0 Kudos
Message 2 of 4
(2,945 Views)
  • Remove the delays
  • remove the local variable and branch the wire going to the blue array indicator
  • Remove the sequence structure, it makes no sense.
  • You can only invert a square 2D array (or matrix), so your code only works if "Array Größe"=2.
  • Create a DBL array directly
  • Avoid coercion dots
  • You can enter error=-20040 into "menu..help..explain error" and it will tell you that "Analysis:  The input matrix must be a square matrix."

 

0 Kudos
Message 3 of 4
(2,942 Views)

Try something like this:

 

 

0 Kudos
Message 4 of 4
(2,938 Views)