104 lines
4.0 KiB
Plaintext
104 lines
4.0 KiB
Plaintext
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
|
|
}
|
|
/// <summary>
|
|
/// implements the other information section of the TMAT packet, see chapter 9
|
|
/// </summary>
|
|
public class OtherInformationSection : TMATSSection<OtherInformationAttributes>
|
|
{
|
|
public OtherInformationSection(int number)
|
|
: base(AttributeIdentifiers.DataConversionAttributes, number)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// HIGHEST ENGINEERING UNIT VALUE DEFINED BY THE CALIBRATION DATA,
|
|
/// SCIENTIFIC NOTATION MAY BE USED.
|
|
/// </summary>
|
|
public string HighMeasurementValue
|
|
{
|
|
get => GetValue(OtherInformationAttributes.HighMeasurementValue);
|
|
set => SetValueWithLength(OtherInformationAttributes.HighMeasurementValue, value);
|
|
}
|
|
/// <summary>
|
|
/// LOWEST ENGINEERING UNIT VALUE DEFINED IN THE CALIBRATION DATA,
|
|
/// SCIENTIFIC NOTATION MAY BE USED.
|
|
/// </summary>
|
|
public string LowMeasurementValue
|
|
{
|
|
get => GetValue(OtherInformationAttributes.LowMeasurementValue);
|
|
set => SetValueWithLength(OtherInformationAttributes.LowMeasurementValue, value);
|
|
}
|
|
/// <summary>
|
|
/// HIGHEST ENGINEERING UNIT VALUE EXPECTED OR SAFE OPERATING VALUE OF
|
|
/// THE PARAMETER (“RED”), SCIENTIFIC NOTATION MAY BE USED.
|
|
/// </summary>
|
|
public string HighAlertLimitValue
|
|
{
|
|
get => GetValue(OtherInformationAttributes.HighAlertLimitValue);
|
|
set => SetValueWithLength(OtherInformationAttributes.HighAlertLimitValue, value);
|
|
}
|
|
/// <summary>
|
|
/// LOWEST ENGINEERING UNIT VALUE EXPECTED OR SAFE OPERATING VALUE OF
|
|
/// THE PARAMETER (“RED”), SCIENTIFIC NOTATION MAY BE USED.
|
|
/// </summary>
|
|
public string LowAlertLimitValue
|
|
{
|
|
get => GetValue(OtherInformationAttributes.LowAlertLimitValue);
|
|
set => SetValueWithLength(OtherInformationAttributes.LowAlertLimitValue, value);
|
|
}
|
|
/// <summary>
|
|
/// HIGHEST ENGINEERING UNIT VALUE EXPECTED OR SAFE OPERATING VALUE OF
|
|
/// THE PARAMETER (“YELLOW”), SCIENTIFIC NOTATION MAY BE USED.
|
|
/// </summary>
|
|
public string HighWarningLimitValue
|
|
{
|
|
get => GetValue(OtherInformationAttributes.HighWarningLimitValue);
|
|
set => SetValueWithLength(OtherInformationAttributes.HighWarningLimitValue, value);
|
|
}
|
|
/// <summary>
|
|
/// LOWEST ENGINEERING UNIT VALUE EXPECTED OR SAFE OPERATING VALUE OF
|
|
/// THE PARAMETER (“YELLOW”), SCIENTIFIC NOTATION MAY BE USED.
|
|
/// </summary>
|
|
public string LowWarningLimitValue
|
|
{
|
|
get => GetValue(OtherInformationAttributes.LowWarningLimitValue);
|
|
set => SetValueWithLength(OtherInformationAttributes.LowWarningLimitValue, value);
|
|
}
|
|
/// <summary>
|
|
/// ENTER THE SAMPLE RATE IN TERMS OF SAMPLES/SECOND.
|
|
/// </summary>
|
|
public string SampleRate
|
|
{
|
|
get => GetValue(OtherInformationAttributes.SampleRate);
|
|
set => SetValueWithLength(OtherInformationAttributes.SampleRate, value);
|
|
}
|
|
}
|
|
}
|