Sepasoft MES Module Suite
system.mes.spc.definition.addLocation(sampleDefinition, locationPath, [autoApprove], [interval], [intervalCount], [intervalDuration], [overDue], [comingDue])
Adds a location to a sample definition object. This function accepts keyword arguments.
Syntax
system.mes.spc.definition.addLocation(sampleDefinition, locationPath, [autoApprove], [interval], [intervalCount], [intervalDuration], [overDue], [comingDue])
- Parameters
MESSampleDefinition sampleDefinition - The sample definition object that is being modified.
String locationPath - The path of the location this sample definition can be collected at.
Boolean autoApprove - Optional Argument. Defaults to True. If samples collected at this location are approved automatically.
String interval - Optional Argument. The name of the interval for auto collection or auto scheduling samples.
Double intervalCount - Optional Argument. The interval that will be used in the Interval script for tag change intervals.
Double intervalDuration - Optional Argument. the interval that will be used in the Interval script for duration based intervals
Double overdue - Optional Argument. How long after a sample is due before it is flagged as overdue in minutes.
Double comingDue - Optional Argument. How long before a sample is due it is flagged as comingDue in minutes.
.
- Returns
MESSampleLocationProperty
- Scope
All
Code Example
Python |
locationPath = 'Enterprise\\El Dorado Hills\\Packaging Area\\Packaging Line 3\\Inspection Station 1' sampleDefinition = system.mes.spc.definition.getSampleDefinition('Test') system.mes.spc.definition.addLocation(sampleDefinition, locationPath, autoApprove=False) sampleDefinition.save() |
Sepasoft MES Module Suite