LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

畳み込み積分(ステップ×ガウス関数)を使ったフィッティング,エラーコード-20041

Solved!
Go to solution

LabVIEW初心者です.私がやりたいことを説明します.

エッジの分解能(任意のデータ:ステップ関数や誤差関数のような形)を評価するために,

ステップ関数とガウス関数による畳み込み積分をフィッティングすることに挑戦しています.

試作品vi (2016)を添付いたします.

 

非線形カーブフィッティングに先ほどの畳み込み積分の関数を参照しているのですが,

「エラーコード-20041がNI_Gmath.lvlib:Nonlinear Curve Fit LM.vi:6620003で発生」

因数のレベルは、一部のデータの許容範囲外にあります。

とエラーが出ます.

 

畳み込み積分でフィッティングする際の方法自体が間違えている,もっといい方法がある,解決策

をご教授していただけたら,幸いです.よろしくお願いします.

0 Kudos
Message 1 of 4
(1,003 Views)

There are many things wrong with your code, maybe fix all that first: The most glaring errors that provide 8 initial parameters, but the model actually uses 10 parameters.

 

I'll have a look at the rest later....

0 Kudos
Message 2 of 4
(996 Views)
Solution
Accepted by topic author blackcoffee_beans

See if this can give you some ideas to start:

 

  • A convolution with a step function is the same as integration (Yes, there is a direct formula for that, but I did not implement it)
  • You cannot send fixed parameters via the initial parameter input. (if needed, you can use the variant data).
  • Use the model to simulate data. No need to duplicate all that same code in the caller.
  • Please do not maximize front panel and diagram to the screen.
  • Gaussian noise is more realistic than even noise.
  • etc.

altenbach_0-1706035253948.png

 

 

Message 3 of 4
(973 Views)

I will use the translation.
Thank you for taking the time to respond. It does what I wanted to express. Thank you very much!
The convolution integral of the step function can indeed be expressed as a simple integral. It is a great learning experience.
I still lack understanding of the problems with my vi, but I will master LabVIEW using the improved version as a guide!

0 Kudos
Message 4 of 4
(959 Views)