Scale and offset are used in a y =mx +b type relationship (m is the scale and b is the offset) to make adjustmets to the encoded value to that it matches the time units. Binary Encoded time is typically used with a user supplied transform algorithm to convert time data formats that are too difficult to describe in XTCE. |
<element name="Encoding"> <annotation> <documentation>Scale and offset are used in a y =mx +b type relationship (m is the scale and b is the offset) to make adjustmets to the encoded value to that it matches the time units. Binary Encoded time is typically used with a user supplied transform algorithm to convert time data formats that are too difficult to describe in XTCE.</documentation> </annotation> <complexType> <choice> <element name="BinaryDataEncoding" type="xtce:BinaryDataEncodingType"/> <element name="FloatDataEncoding" type="xtce:FloatDataEncodingType"/> <element name="IntegerDataEncoding" type="xtce:IntegerDataEncodingType"/> <element name="StringDataEncoding" type="xtce:StringDataEncodingType"/> </choice> <attribute name="units" default="seconds"> <simpleType> <restriction base="string"> <enumeration value="seconds"/> <enumeration value="years"/> <enumeration value="picoseconds"/> <enumeration value="days"/> <enumeration value="month"/> </restriction> </simpleType> </attribute> <attribute name="scale" type="double" default="1"/> <attribute name="offset" type="double" default="0"/> </complexType> </element> |