using IRIGCh10; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace DTS.Serialization.IRIGCH10.Attributes { public enum OtherInformationAttributes { [MaxLength(32)] [Description("MOT1")] HighMeasurementValue, [MaxLength(32)] [Description("MOT2")] LowMeasurementValue, [MaxLength(32)] [Description("MOT3")] HighAlertLimitValue, [MaxLength(32)] [Description("MOT4")] LowAlertLimitValue, [MaxLength(32)] [Description("MOT5")] HighWarningLimitValue, [MaxLength(32)] [Description("MOT6")] LowWarningLimitValue, [Description("SR")] [MaxLength(6)] SampleRate } /// /// implements the other information section of the TMAT packet, see chapter 9 /// public class OtherInformationSection : TMATSSection { public OtherInformationSection(int number) : base(AttributeIdentifiers.DataConversionAttributes, number) { } /// /// HIGHEST ENGINEERING UNIT VALUE DEFINED BY THE CALIBRATION DATA, /// SCIENTIFIC NOTATION MAY BE USED. /// public string HighMeasurementValue { get => GetValue(OtherInformationAttributes.HighMeasurementValue); set => SetValueWithLength(OtherInformationAttributes.HighMeasurementValue, value); } /// /// LOWEST ENGINEERING UNIT VALUE DEFINED IN THE CALIBRATION DATA, /// SCIENTIFIC NOTATION MAY BE USED. /// public string LowMeasurementValue { get => GetValue(OtherInformationAttributes.LowMeasurementValue); set => SetValueWithLength(OtherInformationAttributes.LowMeasurementValue, value); } /// /// HIGHEST ENGINEERING UNIT VALUE EXPECTED OR SAFE OPERATING VALUE OF /// THE PARAMETER (“RED”), SCIENTIFIC NOTATION MAY BE USED. /// public string HighAlertLimitValue { get => GetValue(OtherInformationAttributes.HighAlertLimitValue); set => SetValueWithLength(OtherInformationAttributes.HighAlertLimitValue, value); } /// /// LOWEST ENGINEERING UNIT VALUE EXPECTED OR SAFE OPERATING VALUE OF /// THE PARAMETER (“RED”), SCIENTIFIC NOTATION MAY BE USED. /// public string LowAlertLimitValue { get => GetValue(OtherInformationAttributes.LowAlertLimitValue); set => SetValueWithLength(OtherInformationAttributes.LowAlertLimitValue, value); } /// /// HIGHEST ENGINEERING UNIT VALUE EXPECTED OR SAFE OPERATING VALUE OF /// THE PARAMETER (“YELLOW”), SCIENTIFIC NOTATION MAY BE USED. /// public string HighWarningLimitValue { get => GetValue(OtherInformationAttributes.HighWarningLimitValue); set => SetValueWithLength(OtherInformationAttributes.HighWarningLimitValue, value); } /// /// LOWEST ENGINEERING UNIT VALUE EXPECTED OR SAFE OPERATING VALUE OF /// THE PARAMETER (“YELLOW”), SCIENTIFIC NOTATION MAY BE USED. /// public string LowWarningLimitValue { get => GetValue(OtherInformationAttributes.LowWarningLimitValue); set => SetValueWithLength(OtherInformationAttributes.LowWarningLimitValue, value); } /// /// ENTER THE SAMPLE RATE IN TERMS OF SAMPLES/SECOND. /// public string SampleRate { get => GetValue(OtherInformationAttributes.SampleRate); set => SetValueWithLength(OtherInformationAttributes.SampleRate, value); } } }