ni.com is currently undergoing scheduled maintenance.

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

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I generate a gauss function?

Solved!
Go to solution

Hello together,

I would like to generate a Gauss function. Is there a SubVI. I tryed it, with the SubVI "Gauss Function.vi", but without success.

I hope anybody can help me.

Thanks

Greetings spaetzelcounty

 

LV2009

0 Kudos
Message 1 of 12
(16,220 Views)

It works fine.

 

What do you mean by u failed??

What r ur expected input & outputs???

 

Try "gaussfir (MathScript function)"...i think this is what u r looking for.

0 Kudos
Message 2 of 12
(16,208 Views)

Spaetzelcountry,

 

i assume that you want to display a Gaussian Distribution.

If so, pleas take a look into the example finder and search for Gauss.....

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 12
(16,198 Views)

Yes I mean a Gauss distribution.

 

Hello Kekin,

It is possible that you post a example with the "Gauss Function.vi"?

 

Hello Norbert B,

I looked into the example finder and found: "Gauss Mod sin Generation.vi". Do you mean there is a easier way (VI)?

 

Thanks a lot

 

zäpfle

 

 

0 Kudos
Message 4 of 12
(16,166 Views)
Solution
Accepted by topic author zäpfle

hi zapfile,

  I am posting the gaussian function i.e exp(-x^2/2).19145i448A77C0F7A2FDD5

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Message 6 of 12
(16,149 Views)

Where can I find this VI?

 

 

0 Kudos
Message 7 of 12
(16,145 Views)

The VI is under Math->Probability&statistics.

0 Kudos
Message 8 of 12
(16,136 Views)

Thanks a lot an everybody

greetings zäpfle

0 Kudos
Message 9 of 12
(16,125 Views)

I had the same problem. I found a good solution:

In the end I used the "Gaussian-Peak-Fit.vi"  . It has an input "parameter bounds"; this has to be set to the 4 parameters that define your desired gauss function (center, amplitude, width, offset).

The parameter bounds needs a max and a min-value for each parameter. I just set max=min. (see diagram: 4 values in and 8 values out as a cluster).

The data feed into the Y-input is irrelevant. It is only necessary so that the gauss-fit routine does not complain.

The inspiration for this solution came from the following statement in the help of the Gaussian-Peak-Fit.vi:

"If you know the exact value of certain parameters, you can set the lower and upper bounds of the parameters equal to the known values."

 

Here is a nice programm:

Message 10 of 12
(15,737 Views)