system.mes.spc.controllimit.createFilter(locationPath)

Sepasoft MES Module Suite

system.mes.spc.controllimit.createFilter(locationPath)

Creates a new ControlLimitFilter object to be used with getLimitInfo to query limit values and timestamps.

Syntax

system.mes.spc.controllimit.createFilter(locationPath)

  • Parameters

String locationPath - The path of the location that the limit values are being queried.

  • Returns

ControlLimitFilter - An instance of a Control Limit Filter that can be used to narrow down the results when using getLimitInfo.

SPC | Control Limits | Create Filter

Warning

Stable Version: 3.81.5 and later

Release Candidate: 3.81.4 RC6 and later

Python
path = 'New Enterprise\\New Site\\New Area\\New Line\\New Location'
clFilter = system.quality.spc.controllimit.createFilter(path)

#Optional filter items
# Get limits after
clFilter.setAfter(system.date.addDays(system.date.now(), -7))
# Get limits before
clFilter.setBefore(system.date.now())
# Get limits for a specific definition by name
clFilter.setDefinitionName('My Definition')
# Get limits for a specific attribute by name
clFilter.setAttributeName('Width')
# Get limits for a specific limit by name
clFilter.setLimitName('Individual LCL')
# Get limits for a specific product code
clFilter.setProductCode('A Product Code')
# or get limits specifically not asociated with a product code
clFilter.setProductCode(None)
# Do not call setProductCode to get limits for both no product code and all product codes

data = system.mes.spc.controllimit.getLimitInfoByFilter(clFilter)






Sepasoft MES Module Suite