LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D array Nonlinear LM fitting with error 23033

Hello,

 

I am trying to fit an image 2d array by Nonlinear LM fitting. Checked everything. But it doesn't fit and shows error #23033. I guess also the extract fitting point VI doesnt extract datas.

Sorry, I am new to Labview so there may be many mistakes.

Please someone help me figure out the extract point vi?

 

Thanks!

B

0 Kudos
Message 1 of 8
(3,675 Views)
0 Kudos
Message 2 of 8
(3,672 Views)

The Non_linear_Lev-Mar_Fit_in_N_dimensions.llb is missing.

 

For the 2D non-linear fitting problem, you can refer to the following document.

https://decibel.ni.com/content/docs/DOC-30394

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

There are many missing subVIs. You should also include some typical data.

 

None of your tools are from NI, so you should probably contact the author. He left his name on the front panel.

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

@trrr :     Sorry. Now attached the The Non_linear_Lev-Mar_Fit_in_N_dimensions.llb. How about now?

Could u have a look at it please?

 

@altenbach:   Yes i will try to contact the person who wrote the code.

 

 

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

We still don't have any data. We cannot test unless we have typical input values.

 

Please create indicators for all data input wires to the fitting VI and run your VI until you get the error (and the indicators contains data)

Now stop the VI, right-click the new indicator terminals and select "create constant".

Now  attach the VI once more.

 

We can now delete the rest of the code and run the fitting part under clean room conditions with the constants as inputs.

 

Are you sure that the problem is with the fitting and not with the earlier data prep? Do the dimensions match? Is the number of paramters correct, etc.

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

Error -23033 means:

 

Analysis:  Vectors have different dimensions or empty vectors.

 

If you look at the fitting VI, you can see where this error is generated. Looks like it mostly depends on the output of "List of Variables", so start there..

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

In any case, you should really adapt my 2D code, it will be orders if magnitude faster using a subVI model instead of formula parsing. Look at the 2D gaussian fit in the link above. Just change the model slightly, the rest should fall in place.

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