ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

solve linear equations vs pseudoinverse memory issues

Hello,

 

I am trying to solve a Ax = b system, and have setup my algorithm to use the LU decomposition followed by the appropriate use of the "Solve Linear Equations" VI. I then check the error output from this VI, and if there is an error I try using the "PseudoInverse Matrix" VI.

 

I am doing this in a loop with a progressively larger matrix for each iteration.

 

This works great EXCEPT for when my algorithm gets close to the maximum memory allowed (i.e. - the iteration BEFORE I get an error message stating that the VI has run out of memory).Then, although I do NOT get an error code from my "PseudoInverse Matrix" VI, the values output from this VI are complete garbage (really really large values).

 

Has anyone come across a similar issue before? Is there a way around this? i.e. - I would like to know when/if the  "PseudoInverse Matrix" VI will not provide valuable data output so I can stop my algorithm the iteration beforehand.

 

Thanks!

0 Kudos
Message 1 of 2
(3,275 Views)

You are referring to VIs, is this a LabView question?

 

If so, you are in the wrong forum, this is Labwindows/CVI, the C language IDE forum.

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 2 of 2
(3,274 Views)