NumericValue

model NumericValue "Show value of Real input signal dynamically"
    extends Modelica.Icons.ObsoleteModel;

    parameter Integer precision(min = 0) = 3 "Number of significant digits to be shown";
    parameter Boolean hideConnector = false "= true, if connector is not shown in the dynamic object diagram";
    Modelica.Blocks.Interfaces.RealInput Value "Real value to be shown in icon"
        annotation (
            Dialog(enable = hideConnector),
            Placement(transformation(extent = {
                {-140, -20}, 
                {-100, 20}})));

    annotation (
        obsolete = "Obsolete model - use Modelica.Blocks.Interaction.Show.RealValue instead",
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Rectangle(
                    extent = {
                        {100, 50}, 
                        {-100, -50}},
                    lineColor = {0, 0, 255},
                    fillColor = {236, 233, 216},
                    fillPattern = FillPattern.Solid,
                    borderPattern = BorderPattern.Raised), 
                Text(
                    extent = {
                        {-90, -46}, 
                        {90, 34}},
                    textString = DynamicSelect(" ", String(Value, minimumLength = 1, significantDigits = precision)),
                    lineColor = {0, 0, 255})}));
end NumericValue;