|
@@ -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++)
|