Convert raw value of channel to physical value
encapsulated function to_phys import Modelica; extends Modelica.Icons.Function; input Integer rawData "Raw value from channel"; input Real min "Physical min value of channel"; input Real max "Physical max value of channel"; input Integer unit "Physical unit type of channel"; input Integer maxdata "Maximal raw value of channel"; output Real physData "Physical value of channel"; end to_phys;