T O P I C R E V I E W |
alex |
Posted - 27 May 2010 : 06:15:02 I got few questions when trying the SPCChart. First, we found that SPCchart can display the sample data in tooltip when we click a plot on primary chart.But is it possible to customize the tooltip's contents? such as other production informations.
And second, can I customize the alarm message of a limit record or WE rule violate? for example: the default rule violated message looks like below:
2010-05-25 21:00:00 Primary Chart: WE Upper Limit Rule #4 Violation=0.000 Current Value=65.742
is it possible to customize above message with specified format or contents? |
1 L A T E S T R E P L I E S (Newest First) |
quinncurtis |
Posted - 27 May 2010 : 09:41:06 You cannot customize the data tooltips, for when you click on a data point. You can however add a note for a given sample interval. A notes tool tip is displayed when you click on the Notes field for a sample interval. See the example TimeVariableControlCharts.XBarRChart. Notes are added using one of the AddNewSampleRecord methods.
String notesstring = "This is a note"; this.ChartData.AddNewSampleRecord(timestamp, samples, notesstring);
You can change the alarm message string of a WE rule, but you cannot change the basic format. You can do the same with the SPC_LOWER_CONTROL_LIMIT_# limits.
this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_3).ControlLimitRecord.AlarmMessage = "Rule #1"; this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_2).ControlLimitRecord.AlarmMessage = "Rule #2"; this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_1).ControlLimitRecord.AlarmMessage = "Rule #3"; this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_0).ControlLimitRecord.AlarmMessage = "Rule #4";
A rule #1 rule violation will now look like:
2010-05-25 21:00:00 Rule #1 =25.73 Current Value=26.742
|
|
|