浏览代码

Instantiate rate of change indicators

Neal Wilson 11 年前
父节点
当前提交
2c61702968
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17
    0
      config/Windows/productionroaster.xml

+ 17
- 0
config/Windows/productionroaster.xml 查看文件

@@ -403,6 +403,23 @@
403 403
 					targetDetector.setThreshold(driverReference.FValue);
404 404
 					currentDetector.setThreshold(driverReference.FValue);
405 405
 				}
406
+				else if(driverReference.driver == "rate")
407
+				{
408
+					var primaryColumn = driverReference.column;
409
+					for(var j = 0; j < columnNames.length; j++)
410
+					{
411
+						if(columnNames[j] == primaryColumn)
412
+						{
413
+							var rate = new RateOfChange(driverReference.cache, driverReference.scale);
414
+							channels[j].newData.connect(rate.newMeasurement);
415
+							var indicator = new TemperatureDisplay;
416
+							indicator.display(0);
417
+							var decorator = new WidgetDecorator(indicator, configModel.data(driverIndex, 0), 2);
418
+							indicatorPanel.addWidget(decorator);
419
+							rate.measurement.connect(indicator.setValue);
420
+						}
421
+					}
422
+				}
406 423
 			}
407 424
 		}
408 425
 		for(var i = 1; i < tabControls.length; i++)

正在加载...
取消
保存