LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a gaussian curve on a histogram chart.

Solved!
Go to solution

I want to add a gaussian curve on the histogram chart like the attached picture. I plot the histogram already with my data, but I don't know how to add the gaussian curve.

 

I appreciate your help very much.

0 Kudos
Message 1 of 5
(7,617 Views)

It should be as simple as build array from waveforms. You just need to ensure:

1) they have the same number of data points in each Y part of the waveform

2) t0 and dx are the same for both sets of data.

 

I haven't solved it using express VIs yet, but I'm struggling to get data that conforms to the above rules (otherwise I would have posted an example her for you).

 

Once you have worked out what you need to do to the data sets to manipulate them to get them to conform to the above rules, you will be fine.

 

James

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
0 Kudos
Message 2 of 5
(7,594 Views)
Solution
Accepted by 青风细雨楼

If you have the Statistical Process Control (SPC) toolkit or Datalogging and Supervisory Control toolkit (DSC), LabVIEW has many built-in histogram functions.

 

look for "Plot Histogram and Normal PDF"

 

 

Message 3 of 5
(7,589 Views)
Hi Jeffneuner, thanks for your help. I have not the SPC toolkit. Then how can i do?
0 Kudos
Message 4 of 5
(7,556 Views)

Here is an example using Continuous PDF.vi function.

 

Does this help?

 

cheers

 

David

Message 5 of 5
(7,532 Views)