system.mes.spc.controllimit.getControlLimitValue(definition, locationPath, attributeName, limitName, [productCode], [sampleTimeTaken])

Sepasoft MES Module Suite

system.mes.spc.controllimit.getControlLimitValue(definition, locationPath, attributeName, limitName, [productCode], [sampleTimeTaken])

Get a control limit value currently set for a sample definition and attribute. Optional params include product code - requires Save Control Limit By Product Code, set on the Enterprise equipment object.

Syntax

system.mes.spc.controllimit.getControlLimitValue(definition, locationPath, attributeName, limitName, [productCode], [sampleTimeTaken])

  • Parameters

MESSampleDefinition definition - The SPC sample definition object that contains the limit value.

String locationPath - Path of the location of the control limit.

String attributeName - Name of the attribute that the limit value is searched for.

String limitName - Name of the control limit.

String productCode - The product code to use for SPC result settings. Optional

Date sampleTimeTaken - The time the sample was taken at. Optional

  • Returns

Double - A control limit value.

Getting Control Limit Value

Warning

Stable Version: 3.81.5 and later

Release Candidate: 3.81.4 RC6 and later

Python
defName = 'Single Attribute'
definition = system.mes.spc.definition.getSampleDefinition(defName)
locationPath = 'Enterprise\\El Dorado Hills\\Packaging Area\\Packaging Line 1\\Inspection Station 1'
attributeName = 'Diameter'
limitName = 'Individual UCL'
print system.mes.spc.controllimit.getControlLimitValue(definition, locationPath, attributeName, limitName)

Getting Control Limit Value when Only if Save Control Limits by Product Code is set on the Enterprise Root

Python
defName = 'Single Attribute'
definition = system.mes.spc.definition.getSampleDefinition(defName)
locationPath = 'Enterprise\\El Dorado Hills\\Packaging Area\\Packaging Line 1\\Inspection Station 1'
attributeName = 'Diameter'
limitName = 'Individual UCL'
product = 'Product A'
print system.mes.spc.controllimit.getControlLimitValue(definition, locationPath, attributeName, limitName, productCode=product)





Sepasoft MES Module Suite