LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dominant wavelength VI


@altenbach wrote:

 In this case only the broad peak would really be interesting.


Here's how you could get the centroid of the broad peak

 

altenbach_0-1770231154019.png

 

Message 11 of 15
(272 Views)

@altenbach wrote:

@altenbach wrote:

 In this case only the broad peak would really be interesting.


Here's how you could get the centroid of the broad peak

 

altenbach_0-1770231154019.png

 


I think this is the first time I seen altenbach make a XY graph without using complex numbers. Has his account been hijacked? 🙂 

Message 12 of 15
(244 Views)

@mcduff wrote:
I think this is the first time I seen altenbach make a XY graph without using complex numbers. Has his account been hijacked? 🙂 

The very specific reason here is that "threshold array" for unevenly spaced x requires an array of points, which I re-use for the graph. 😮

 

 

( RANT: there are plenty of functions that require xy data as inputs (all fitting VIs, threshold array, interpolate array, etc.  and I would love for all of them to accept complex arrays as input alternatives. Maybe I'll eventually write an idea... As a simple example, an improved linear fit tool would only have exactly one 1D array input. If a DBL is wired, x would be taken as array index (see also this old idea here! ) while wiring a complex 1D array would assume xy data and output a complex array as best fit. Having separate arrays for x and y just clutters the diagram)

Message 13 of 15
(239 Views)

Thank you to everyone for responding to me and supplying me with a centroid example

 

 

Using these examples I do get the same centroid value from the broad peak that I would with Lux Py for example

Message 14 of 15
(233 Views)

@LED47 wrote:

Thank you to everyone for responding to me and supplying me with a centroid example

 

 

Using these examples I do get the same centroid value from the broad peak that I would with Lux Py for example


If your product is a success, be sure to include CAB with some of the proceeds.

0 Kudos
Message 15 of 15
(221 Views)