03-06-2023 11:09 AM - edited 03-06-2023 11:30 AM
Hi everyone, I am working on displaying both the Gaussian fit as well as the raw data on the same graph. The issue that I am having is that the Gaussian fit is off on the X axis but is displaying the correct peaks (see attached screen shot). Ideally I would like for the Gaussian fit to only fit the highest peak and for it to lay on top of the raw data. I have attached all of the required VI's. I would appreciate any and all help fixing this error.
03-06-2023 11:28 AM
Well, if you want them to overlay on the X axis in the same place, generally you want to use the same X array as input but then use different Y arrays for the different plots.
It looks maybe like you're trying to do something where you only do a gaussian fit on the tallest peak or something? The stuff you're doing with the Peak Detect VI isn't quite making sense to me on a quick peek.
Can you upload a modified version of this where the "Blank + Average" subVI instead outputs a set of sample data so we can run the VI on our own PCs to see the numbers you're actually getting on all of the wires? And maybe remove all of the hardware code (Ocean optics VIs).
03-06-2023 11:30 AM
We don't have your data and we are missing subVIs.
So you want to fit the peaks to an gaussian envelope, right?
Can you simplify your code to.
Then down-convert to e.g. LabVIEW 2020 and attach it once more. Thanks.
(... and please don't maximize the subVI diagrams and front panels to the screen. That's just annoying!)