Author |
Topic |
|
martintijmes
Netherlands
23 Posts |
Posted - 31 Jul 2018 : 12:27:40
|
I am having some troubles with the INDIVIDUAL_RANGE chart, using the QCSPCChart+ 3.6.
I have result values from the same sample that I want to display at different batch points. I have made sure that the BatchCount and Timestamp are different for each point. Although the table shows correctly, the points are drawn at the same batch instants in the chart. My BatchIDString is the same for some of the points, but I need this value to be equal for some other logic (calculating the scrollbarvalue).
Interestingly, the chart renders perfectly fine in the QC library of a colleague of mine (for the Armstrong project).
Can this be solved in the 3.6 version?
Using the following chart object: {"StaticProperties":{"Canvas":{"Width":1778,"Height":806},"DefaultFontName":"Tahoma, Arial, sans-serif","DefaultTableFont":{"Name":"Tahoma, Arial, sans-serif","Size":12,"Style":"Plain"},"SPCChartStrings":{"DefaultMean":"MEAN","DefaultMedian":"MEDIAN","DefaultRange":"RANGE","DefaultVariance":"VARIANCE","DefaultSigma":"SIGMA","DefaultSampleValue":"VALUES","DefaultAbsRange":"ABS(RANGE)","DefaultSum":"SUM","TitleHeader":"Characteristic: ","ChartNumberHeader":"Chart: ","PartNumberHeader":"Material Id: ","PartNameHeader":"Material Desc.: ","OperationHeader":"Material Id: ","MachineHeader":"Entity: ","OperatorHeader":"Operator: ","DateHeader":"Date: ","NotesHeader":"@@Notes@@","AlarmHeader":"@@Alarm@@","TimeHeader":"@@Time@@"},"DefaultAlarmColors":{"LowAlarm":"0xFFCCCC00","HighAlarm":"0xFFCCCC00","HighSpecLimit":"0xFFFF6FFF","LowSpecLimit":"0xFFFF6FFF"}},"SPCChart":{"InitChartProperties":{"SPCChartType":"INDIVIDUAL_RANGE_CHART","ChartMode":"Batch","NumCategories":1,"NumSamplesPerSubgroup":1,"NumDatapointsInView":15,"NumberAddedVariables":0},"Scrollbar":{"EnableScrollBar":true,"ScrollbarPosition":"SCROLLBAR_POSITION_UNCHANGED","ScrollbarValue":0},"TableSetup":{"EnableProcessCapabilityValues":true,"EnableCategoryValues":false,"EnableTotalSamplesValues":true,"HeaderStringsLevel":"HEADER_STRINGS_LEVEL2","TableBackgroundMode":"TABLE_STRIPED_COLOR_BACKGROUND","BackgroundColor1":"BEIGE","BackgroundColor2":"GHOSTWHITE","TableAlarmEmphasisMode":"ALARM_HIGHLIGHT_OUTLINE","ChartAlarmEmphasisMode":"ALARM_HIGHLIGHT_SYMBOL","EnableNotes":true,"ChartData":{"TimeFormat":"TIMEDATEFORMAT_24HM","Title":"","ChartNumber":"","PartName":"","Operation":"","Machine":"","ProcessCapabilitySetup":{"EnableCPK":false}}},"MiscChartDataProperties":{"MultiVariableItems":{"MultiVariableColors":[],"YAxisMapping":[]},"Legend":{"EnableLegend":true,"LegendStrings":["IX & MR"]}},"Events":{"EnableDataToolTip":true,"EnableJSONDataToolTip":true,"AlarmStateEventEnable":true,"AlarmTransitionEventEnable":false,"DataToolTip":{"EnableCategoryValues":false,"EnableProcessCapabilityValues":false,"EnableCalculatedValues":true,"EnableNotesString":false},"NotesToolTip":{"NotesReadOnly":true},"EnableAlarmStatusValues":false},"PrimaryChartSetup":{"FrequencyHistogram":{"EnableDisplayFrequencyHistogram":true},"ControlLimits":{"OutOfLimitSymbolSize":12,"OutOfLimitSymbolType":"CROSS","Target":{"LineColor":"DARKGRAY","LineWidth":2,"EnableAlarmLine":true,"EnableAlarmLineText":true,"DisplayString":"Target"},"LCL3":{"LineWidth":2,"EnableAlarmLine":true,"EnableAlarmLineText":true,"EnableAlarmChecking":false,"LimitValue":3,"DisplayString":"LCL"},"UCL3":{"LineWidth":2,"EnableAlarmLine":true,"EnableAlarmLineText":true,"EnableAlarmChecking":false,"LimitValue":7,"DisplayString":"UCL"}},"SpecificationLimits":{"LowSpecificationLimit":{"LineWidth":2,"EnableAlarmLine":true,"EnableAlarmLineText":true,"EnableAlarmChecking":false,"LimitValue":1,"DisplayString":"LSL"},"HighSpecificationLimit":{"LineWidth":2,"EnableAlarmLine":true,"EnableAlarmLineText":true,"EnableAlarmChecking":false,"LimitValue":9,"DisplayString":"USL"}},"PlotMeasurementValues":false,"YAxisLeft":{"MinValue":0,"MaxValue":1},"YAxisRight":{"MinValue":0,"MaxValue":1}},"SecondaryChartSetup":{"EnableChart":true,"FrequencyHistogram":{"EnableDisplayFrequencyHistogram":true},"ControlLimits":{"Target":{"DisplayString":"Target","EnableAlarmLine":false,"EnableAlarmLineText":false},"LCL3":{"EnableAlarmLine":false,"EnableAlarmLineText":false,"EnableAlarmChecking":false},"UCL3":{"EnableAlarmLine":false,"EnableAlarmLineText":false,"EnableAlarmChecking":false}},"YAxisLeft":{"MinValue":0,"MaxValue":1},"YAxisRight":{"MinValue":0,"MaxValue":1}},"ThirdChartSetup":{"EnableChart":false,"ControlLimits":{}},"SampleData":{"SampleIntervalRecords":[{"BatchCount":0,"BatchIDString":"49503","TimeStamp":1533029513647,"SampleValues":[1],"VariableControlLimits":[5,3,7],"VariableSpecificationLimits":[1,9]},{"BatchCount":1,"BatchIDString":"49503","TimeStamp":1533029513657,"SampleValues":[5],"VariableControlLimits":[5,3,7],"VariableSpecificationLimits":[1,9]},{"BatchCount":2,"BatchIDString":"49503","TimeStamp":1533029513667,"SampleValues":[5],"VariableControlLimits":[5,3,7],"VariableSpecificationLimits":[1,9]},{"BatchCount":3,"BatchIDString":"49505","TimeStamp":1533029522963,"Note":"1 outside control limits,\n2 of 3 outside of 2 std. dev.","SampleValues":[1],"VariableControlLimits":[5,3,7],"VariableSpecificationLimits":[1,9],"PrimaryForceAlarm":"FORCE_HIGH"},{"BatchCount":4,"BatchIDString":"49505","TimeStamp":1533029522973,"Note":"1 outside control limits,\n2 of 3 outside of 2 std. dev.","SampleValues":[2],"VariableControlLimits":[5,3,7],"VariableSpecificationLimits":[1,9],"PrimaryForceAlarm":"FORCE_HIGH"},{"BatchCount":5,"BatchIDString":"49505","TimeStamp":1533029522983,"Note":"1 outside control limits,\n2 of 3 outside of 2 std. dev.","SampleValues":[0],"VariableControlLimits":[5,3,7],"VariableSpecificationLimits":[1,9],"PrimaryForceAlarm":"FORCE_HIGH"}]},"Annotations":[],"Methods":{"AutoCalculateControlLimits":[false,false],"AutoScaleYAxes":[true,true],"RebuildUsingCurrentData":true}}} |
|
quinncurtis
1586 Posts |
Posted - 01 Aug 2018 : 11:50:06
|
The cause of the data points not spacing out has nothing to do with the chart being an Individual Range chart. The time stamps you use mostly are separated by 10 ms, with a 1 second jump in the middle. That is insufficient resolution for the sorting which goes on in the chart. Space your timestamps out at least one second for each sample interval and the chart will draw as you expect. That being said, the chart should be able to handle irregular time/date stamps if the chart is in batch mode. This looks like a bug in the changeover from Rev. 3.5 to 3.6, which replaced the time and batch coordinate system of the charts with an event based coordinate system.
Armstrong is using 3.5 of this software. The bug is not present in that version. So if you are supporting that customer, you should stick to Rev. 3.5 for the time being.
|
|
|
martintijmes
Netherlands
23 Posts |
Posted - 03 Aug 2018 : 04:58:25
|
Hi, the behavior has improved.
Now the chart is able to handle timestamp differences smaller than 1 second. However, when having different BatchCount with the same timestamp, the chart still behaves strange (i.e. not all points are shown). |
|
|
quinncurtis
1586 Posts |
Posted - 03 Aug 2018 : 11:27:06
|
We tested the scenario where every timestamp has the same value using the example script BatchXBarR in the chartdefExampleScripts.js file (invoked using SPCExampleScripts.html file). We changed all of the time stamps in the data section of that example to use exactly the same value. We don't see any overlapping, or missing points. So see if you can reproduce the problem in a simple script and send that to us to investigate.
|
|
|
martintijmes
Netherlands
23 Posts |
Posted - 06 Aug 2018 : 04:12:19
|
Sorry, I found a function in my code which was causing the issue. Chart seems to be working fine. |
|
|
|
Topic |
|
|
|