Example Code

Cpk Calculations

Code and Documents

Attachment

 

Overview
LabVIEW VI for calculating Cpk from a given set of results.

 
Description
Takes an array of results plus a high and low limit, returns the calculated Cpk values, plus a simple histogram and graph.

Useful for checking a test returns consistent results when repeated.

An Excel spreadsheet is attached which performs the same calculations. The spreadsheet template can handle up to 12 results for 50+ tests, although this can be expanded quite easily.

 


Requirements

LabVIEW 2013 (or later)


Steps to Implement or Execute Code

  1. download the zip file and extract the vi
  2. Run Cpk Calculation.vi

 

Additional Images or Video

 front panel

Cpk.jpg

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Ravi1995
Member
Member
on

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