Convert physical value of channel to corresponding raw value
encapsulated function from_phys import Modelica; extends Modelica.Icons.Function; input Real physData "Physical value of 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 Integer rawValue "Raw value of channel"; end from_phys;