LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cp,cpk

Hi 

    I would like to calculate cp,cpk values with out using spc toolkit.I have generated cp,cpk values but it is not matching with minitab cp,cpk values.In minitab there are two types of capabilities.In my VI genertaed values are matching with overall capability.I am unable to find how to calculate cp,cpk values with in limit.Can any one help me in calculating cp,cpk values.Here You can find link for https://www.isixsigma.com/tools-templates/capability-indices-process-capability/cp-cpk-pp-and-ppk-kn...

with in limit.

Thanks

Ravi 

0 Kudos
Message 1 of 4
(3,160 Views)

If you upload a file with a comma in the filename, it becomes undownloadable from these forums (multiple headers error)

 

The link you specified seems to show formulas for each of the coefficients you want to calculate. I expect you could calculate these fairly simply using LabVIEW, but without seeing your code I can't guess how close or far away you might be, or what you could improve!


GCentral
0 Kudos
Message 2 of 4
(3,064 Views)

@cbutcher wrote:

If you upload a file with a comma in the filename, it becomes undownloadable from these forums (multiple headers error)

 


That's odd because when I clicked on the link, it opened up just fine.

0 Kudos
Message 3 of 4
(3,042 Views)

As a first step, you need to learn the LabVIEW basics. Your Vi is full of race conditions fixed by crazy extra code.

 

There is a glaring race conditions because the "mean local might get read before the indicator has been written. You "fix" that by the outer FOR loop causing the same calculation to be done twice and in the second round the mean has the new value. Crazy!

 

  • If you would eliminate the local and use a proper wire, the outer FOR loop can be deleted.
  • Your inner FOR loop can be removed without any change in outcome!
  • There is a primitive to calculate the mean of an array.
  • You are calculating the variance, not the covariance
  • Why do you calculate 3xSD twice. Once is sufficient!
  • Please don't link to questionable sites peppered with ads.

 

 

altenbach_0-1689457215572.png

 

Here is a :"literal" cleanup of your code (i.e. no change is result!  which is apparently wrong but can still see to properly write a LabVIEW code.)

Now just go back to the documentation and fix it (I won't look at pages peppered with advertisements. Maybe start reading here instead!).

 

 

altenbach_0-1689459004431.png

 

 

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