Download User Manual - Quinn

Transcript
410 Creating SPC Charts in Windows Applications
spcChart.ChartData.PartName = "Transmission Casing Bolt";
spcChart.ChartData.Operation = "Threading";
// Display the Sampled value rows of the table
spcChart.EnableInputStringsDisplay = true;
// Display the Sampled value rows of the table
spcChart.EnableCategoryValues = true;
// Display the Calculated value rows of the table
spcChart.EnableCalculatedValues = true;
// Display the total samples per subgroup value row
spcChart.EnableTotalSamplesValues = true;
// Display the Notes row of the table
spcChart.EnableNotes = true;
// Display the time stamp row of the table
spcChart.EnableTimeValues = true;
spcChart.EnableAlarmStatusValues = true;
//You can control the decimal precision of the sampled values using
spcChart.ChartData.DefectiveDecimalPrecision = 1;
//You can control the decimal precision of the calculated values
(Mean, Range, Sum) using
spcChart.ChartData.CalculatedValueDecimalPrecision = 1;
spcChart.PrimaryChart.DisplayFrequencyHistogram = true;
spcChart.SecondaryChart.DisplayFrequencyHistogram = true;
spcChart.TableAlarmEmphasisMode = SPCChartBase.ALARM_HIGHLIGHT_BAR;
spcChart.AutoLogAlarmsAsNotes = true;
// want no table at all - use this instead
title
//
primary chart,
//
spcChart.UseNoTable(true,
"Place your chart title here");
secondary chart, histograms, chart
true,
true,
spcChart.ChartTable.TimeItemTemplate.TimeFormat =
ChartObj.TIMEDATEFORMAT_24HMS;
spcChart.EnableScrollBar = true;
spcChart.ChartAlarmEmphasisMode = SPCChartBase.ALARM_HIGHLIGHT_SYMBOL;