Download User Manual - Quinn

Transcript
SPC Control Data and Alarm Classes 137
Clone
Copy
ErrorCheck
GetAlarm
GetControlLimitHistoryValue
SetControlLimitValue
Returns an object that is a Clone of this
SPCControlLimitRecord object.
Overloaded. Copies the source
SPCControlLimitRecord object.
Checks the SPCControlLimitRecord
object for common errors. Current error
state. Returns an error code.
Returns the current alarm state based on the
passed in value.
Get a values for the controlLimitsValues
historical buffer.
Set current value of the control limit and
adds that value to the controlLimitValues
historical array.
The SPCControlLimitRecord properties are documented in the
QCSPCChartSLCompiledHelpFile.chm documentation file, located in the \doc
subdirectory.
Example of trapping SPCControlLimitRecord alarm using an event delegate
The example below specifies an alarm event delegate for the control limit alarms. The
example was extracted from the
TimeVariableControlCharts.DynamicXBarRChart example program.
[C#]
public void InitializeChart()
{
// Initialize the SPCTimeVariableControlChart
spcChart.InitSPCTimeVariableControlChart(charttype,
numsamplespersubgroup, numdatapointsinview, timeincrementminutes);
// Set the strings used in the header section of the table
spcChart.ChartData.Title = "Variable Control Chart (X-Bar & R)";
.
.
.
spcChart.ChartData.AlarmStateEventHandler +=
new SPCControlLimitAlarmEventDelegate(spcChart.SPCControlLimitAlarm);