Command: SPCProcessCapab
- Updated2024-09-12
- 5 minute(s) read
Command: SPCProcessCapab
Command: SPCProcessCapab
Calculates the mean, the sigma, and the capability indices of a process.
Input Parameters
ChnList |
Specifies one or more channels. |
SPCUSL |
Specifies the upper specification limit of a process. |
SPCLSL |
Specifies the lower specification limit of a process. |
SPCSigmaType |
Specifies which method to use for calculating the process sigma. |
SPCSigmaMult |
Specifies the sigma multiplier for calculating the upper and the lower natural process limits. |
SPCMovingRangeNo |
Specifies the number of samples that are to be included in the moving range if the sample size is 1, which means the channels with length 1. |
SPCSigmaTol |
Specifies the sigma multiplier for calculating the process capability index. |
Return Parameters
| Receives the mean value of a process. | |
| Receives the standard deviation (sigma) of a process. | |
| Receives the upper natural process limit of a process. | |
| Receives the lower natural process limit of a process. | |
| Receives the one-sided upper process capability index CpU. | |
| Receives the one-sided lower process capability index CpL. | |
| Receives the process capability index Cp. | |
| Receives the process capability index Cpk. | |
| Receives the estimated fraction nonconforming in ppm based on a normal process distribution | |
| Receives the estimated fraction nonconforming in ppm above the upper spec limit based on a normal process distribution. | |
| Receives the estimated fraction nonconforming in ppm below the lower spec limit based on a normal process distribution. |
| Note Additionally DIAdem saves the calculation results in the following custom properties of the result channel: Result~SPC~ProcessMean, Result~SPC~ProcessSigma, Result~SPC~Limits~UpperNPL, Result~SPC~Limits~LowerNPL, Result~SPC~CapabilityIndexes~CpU, Result~SPC~CapabilityIndexes~CpL, Result~SPC~CapabilityIndexes~Cp, Result~SPC~CapabilityIndexes~Cpk, Result~SPC~NonconformingParts~FracNConf, Result~SPC~NonconformingParts~UpperFracNConf, and Result~SPC~NonconformingParts~LowerFracNConfResultSPCCp. |
Example
The following example calculates the mean, the standard deviation, and the capability indexes of a process. The upper specification limit is 5.2 and the lower specification limit is 4.8. DIAdem uses the average sample standard deviation from samples (number of channels) to calculate the standard deviation of the process with the respective sample size N (respective channel length).
| VBScript | Python |
Dim oMyChannelList Set oMyChannelList = Data.GetChannels("Grp/Sample*") Call SPCProcessCapab(oMyChannelList, 5.2, 4.8, "From StdDev", 3, 2, 6)
Dialog Box Call
Call SUDDlgShow("Main", ResourceDrv & "AnaSPCProcessCapab")


