system.mes.spc.controllimit.isValueWithinLimits

Sepasoft MES Module Suite

system.mes.spc.controllimit.isValueWithinLimits

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

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

This function accepts keyword arguments.

Tests a measurement value to determine if it is within control limits.

Syntax

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

  • Parameters

MESSampleDefinition definition - The sample definition object that contains the limit values used in the test.

String locationPath - The path of the location that the limit values are begin used to test the measurement value.

String attributeName - The name of the attribute that the limit values are used for the test.

String limitName - The name of the limits to test. Multiple limit names can be specified by separating them with commas.

Double value - The measurement value to test.

String productCode - The product code that the limit values used in the test. Uses a blank string to specify the default product code if nothing is passed in. This only applies if the Save Control Limits by Product Code option is selected.

Date sampleTimeTaken - The time the sample was taken at. The current datetime is used if nothing is passed in.

  • Returns

List<ControllimitResult> - A Java List containing ControllimitResult objects

Is Measurement Value within Control Limits

Warning

Stable Version: 3.81.5 and later

Release Candidate: 3.81.4 RC6 and later

Python
locationPath = 'New Enterprise\\California\\Quality\\Location A'
defUUID = 'dde09f41-0d73-4212-afcc-957571915930'
defName = 'Def 1'
attributeName = 'Temperature'
limits = 'XBar UCL,XBar LCL' #If '' then evaluate all limits for the default chart
productCode = ''
value = 100.5
result = system.mes.spc.controllimit.isValueWithinLimitsByDefUUID(defUUID, locationPath, attributeName, limits, productCode, value)
#Where result = List<ControlLimitResult> : [{XBar UCL, Upper, 134.0, True}, {XBar LCL, Lower, 85.0, True}]
print result
result = system.quality.spc.controllimit.isValueWithinLimitsByDefName(defName, locationPath, attributeName, limits, productCode, value)
print result[0].getLimitName()
print result[0].getLimitType()
print result[0].getLimitValue()
print result[0].getResult()





system.mes.spc.controllimit.isValueWithinLimitsByDefName(defName, locationPath, attributeName, limitName, value, [productCode], [sampleTimeTaken])

system.mes.spc.controllimit.isValueWithinLimitsByDefUUID(defUUID, locationPath, attributeName, limitName, value, [productCode], [sampleTimeTaken])

system.mes.spc.controllimit.isValueWithinLimitsByDefUUID(defUUID, locationPath, attributeName, limitName, value, [productCode], [sampleTimeTaken])

This function accepts keyword arguments.

Tests a measurement value to determine if it is within control limits.

Syntax

system.mes.spc.controllimit.isValueWithinLimitsByDefUUID(defUUID, locationPath, attributeName, limitName, value, [productCode], [sampleTimeTaken])

  • Parameters

String defUUID - The sample definition UUID that contains the limit values used in the test.

String locationPath - The path of the location that the limit values are begin used to test the measurement value.

String attributeName - The name of the attribute that the limit values are used for the test.

String limitName - The name of the limits to test. Multiple limit names can be specified by separating them with commas.

Double value - The measurement value to test.

String productCode - The product code that the limit values used in the test. Uses a blank string to specify the default product code if nothing is passed in. This only applies if the Save Control Limits by Product Code option is selected.

Date sampleTimeTaken - The time the sample was taken at. The current datetime is used if nothing is passed in.

  • Returns

List<ControllimitResult> - An java List containing ControllimitResult objects

Is Measurement Value within Control Limits

Warning

Stable Version: 3.81.5 and later

Release Candidate: 3.81.4 RC6 and later

Python
locationPath = 'New Enterprise\\California\\Quality\\Location A'
defUUID = 'dde09f41-0d73-4212-afcc-957571915930'
defName = 'Def 1'
attributeName = 'Temperature'
limits = 'XBar UCL,XBar LCL' #If '' then evaluate all limits for the default chart
productCode = ''
value = 100.5
result = system.mes.spc.controllimit.isValueWithinLimitsByDefUUID(defUUID, locationPath, attributeName, limits, productCode, value)
#Where result = List<ControlLimitResult> : [{XBar UCL, Upper, 134.0, True}, {XBar LCL, Lower, 85.0, True}]
print result
result = system.quality.spc.controllimit.isValueWithinLimitsByDefName(defName, locationPath, attributeName, limits, productCode, value)
print result[0].getLimitName()
print result[0].getLimitType()
print result[0].getLimitValue()
print result[0].getResult()





Is Measurement Value within Control Limits

Warning

Stable Version: 3.81.5 and later

Release Candidate: 3.81.4 RC6 and later

Python
locationPath = 'New Enterprise\\California\\Quality\\Location A'
defUUID = 'dde09f41-0d73-4212-afcc-957571915930'
defName = 'Def 1'
attributeName = 'Temperature'
limits = 'XBar UCL,XBar LCL' #If '' then evaluate all limits for the default chart
productCode = ''
value = 100.5
result = system.mes.spc.controllimit.isValueWithinLimitsByDefUUID(defUUID, locationPath, attributeName, limits, productCode, value)
#Where result = List<ControlLimitResult> : [{XBar UCL, Upper, 134.0, True}, {XBar LCL, Lower, 85.0, True}]
print result
result = system.quality.spc.controllimit.isValueWithinLimitsByDefName(defName, locationPath, attributeName, limits, productCode, value)
print result[0].getLimitName()
print result[0].getLimitType()
print result[0].getLimitValue()
print result[0].getResult()





Sepasoft MES Module Suite