Cicode Programming Reference > Cicode Function Categories > Statistical Process Control Functions Introduction > SPCClientInfo

SPCClientInfo

Returns SPC data for the given SPC tag. The information retrieved through this function is from the cache maintained by the client. This function will give a faster response than the related functions which access the SPC (trend) server.

This function can only be called while the SPC tag is being displayed on an SPC page.

Syntax

SPCClientInfo(sSPCTag, iType)

sSPCTag:

The SPC Tag name as defined in SPC Tags.

iType:

The information to be returned:

1 - Subgroup Size

2 - No. of Subgroups

3 - Process Mean (x double bar)

4 - Process Range

5 - Process Standard Deviation

6 - Lower Specification Limit (LSL)

7 - Upper Specification Limit (USL)

8 - Cp - Process Capability Actual

9 - Cpk - Process Capability Potential

10 - Process Skewness

11 - Process kurtosis

Return Value

The requested data specified by iType. It is of type REAL.

Related Functions

SPCSpecLimitGet, SPCProcessXRSGet, SPCSubgroupSizeGet

Example

/* This function will check the capability of a particular SPC tag.*/
REAL
FUNCTION
CheckCapability(STRING sTAG)
REAL rReturn;
rReturn = SPCClientInfo(sTag, 8);
!rReturn holds the inherent capability value
IF rReturn > 1.0 THEN
Message(sTag + "Assessment","The process is Capable.",64);
ELSE
Message(sTag + "Assessment","The process is not Capable.",64);
END
Return rReturn;
END

See Also

SPC Functions