public override void OnValueUpdatedAction(object parm) { var args = parm as ValueUpdatedEvent; var val = ScaleRawLevel(Convert.ToSingle(args.value)); if (val > zeroScaleCalibrationActual) { dataLogger.AddEntry(val); } else { dataLogger.AddEntry("probe disconnected"); } }