LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Eigenvectors of a large array for PCA analysis

Hi,
I am writing code for PCA analysis based on Karhunen-Loeve decomposition. This involves getting eigenvalues and eigenvectors of a very large array i.e. 944x944. I'm getting the error -20062 which indicates that I have exceeded the maximum iterations of this VI. Does anyone have a suggestion as to what I may do from here, besides using different software, or is this my only choice? Thanks in advance.
Marion
0 Kudos
Message 1 of 5
(3,294 Views)
I tried to reproduce the problem in LabVIEW 6.1 and 7. It seemed to work in both versions. My test code in LV 7 is below. Can you post simple code that reproduces the problem? You will probably want to let NI know about the issue. Goto www.ni.com/ask to contact them. I know of no workarounds.
0 Kudos
Message 2 of 5
(3,294 Views)
Thanks for your reply Jeremy. I can't open your code because I am working in Labview6.i. However I have written a vi with just the array I am using and the eigenvector/value VI. It runs for a few secs then just stops and nothing is written into the output arrays!
0 Kudos
Message 3 of 5
(3,294 Views)
This code looks like mine except there are no default values on the 2d array. It is behaving really strange. In LabVIEW 6.1, I created a two nested for loops and added their i's to create the 945X945 matrix. The first time I ran the code, it did not return anything. The second time I ran the code, I hooked up the error output and closed down the windows for "eigenvalue and vector.vi" and it worked!! I saved for previous and the code worked in LabVIEW 6i. I am not sure what is causing the problem.
0 Kudos
Message 4 of 5
(3,294 Views)
Hi Jeremy,
Thanks for trying again. I have given up and resorted to using Matlab instead. It's working fine now but I have to export my eigenvalues from Matlab to a spread sheet. I can't use matlab script because for some other bizarre reason when I put the eig(); instruction in a Matlab script in Labview it also crashes. It doesn't seem to like Vector Analysis!
You've been very kind.
0 Kudos
Message 5 of 5
(3,294 Views)