70 lines
3.3 KiB
C#
70 lines
3.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using DTS.Common.Base;
|
|
|
|
namespace DataPROWin7.DataModel
|
|
{
|
|
/// <summary>
|
|
/// this is a class for holding das specific settings in a test, for example sample rate or aaf
|
|
/// it is serialized into tblTestSetupDASSettings
|
|
/// </summary>
|
|
public class DASSettings : BasePropertyChanged
|
|
{
|
|
public DASSettings()
|
|
{
|
|
}
|
|
public DASSettings(DASSettings setting)
|
|
{
|
|
_DASSerialNumber = setting.DASSerialNumber;
|
|
_sampleRate = setting.SampleRate;
|
|
_excitationWarmupTimeMS = setting.ExcitationWarmupTimeMS;
|
|
_aaf = setting.HardwareAAF;
|
|
_preTriggerSeconds = setting.PreTriggerSeconds;
|
|
_postTriggerSeconds = setting.PostTriggerSeconds;
|
|
_statusLineCheck = setting.StatusLineCheck;
|
|
_batteryCheck = setting.BatteryCheck;
|
|
_inputVoltageMin = setting.InputVoltageMin;
|
|
_inputVoltageMax = setting.InputVoltageMax;
|
|
_batteryVoltageMin = setting.BatteryVoltageMin;
|
|
_batteryVoltageMax = setting.BatteryVoltageMax;
|
|
}
|
|
private string _DASSerialNumber;
|
|
public string DASSerialNumber { get => _DASSerialNumber; set => SetProperty(ref _DASSerialNumber, value, "DASSerialNumber"); }
|
|
|
|
private double _sampleRate;
|
|
public double SampleRate { get => _sampleRate; set => SetProperty(ref _sampleRate, value, "SampleRate"); }
|
|
|
|
private int _excitationWarmupTimeMS;
|
|
public int ExcitationWarmupTimeMS { get => _excitationWarmupTimeMS; set => SetProperty(ref _excitationWarmupTimeMS, value, "ExcitationWarmupTimeMS"); }
|
|
|
|
private double _aaf;
|
|
public double HardwareAAF { get => _aaf; set => SetProperty(ref _aaf, value, "HardwareAAF"); }
|
|
|
|
private double _preTriggerSeconds;
|
|
public double PreTriggerSeconds { get => _preTriggerSeconds; set => SetProperty(ref _preTriggerSeconds, value, "PreTriggerSeconds"); }
|
|
|
|
private double _postTriggerSeconds;
|
|
public double PostTriggerSeconds { get => _postTriggerSeconds; set => SetProperty(ref _postTriggerSeconds, value, "PostTriggerSeconds"); }
|
|
|
|
private bool _statusLineCheck;
|
|
public bool StatusLineCheck { get => _statusLineCheck; set => SetProperty(ref _statusLineCheck, value, "StatusLineCheck"); }
|
|
|
|
private bool _batteryCheck;
|
|
public bool BatteryCheck { get => _batteryCheck; set => SetProperty(ref _batteryCheck, value, "BatteryCheck"); }
|
|
|
|
private double _inputVoltageMin;
|
|
public double InputVoltageMin { get => _inputVoltageMin; set => SetProperty(ref _inputVoltageMin, value, "InputVoltageMin"); }
|
|
|
|
private double _inputVoltageMax;
|
|
public double InputVoltageMax { get => _inputVoltageMax; set => SetProperty(ref _inputVoltageMax, value, "InputVoltageMax"); }
|
|
|
|
private double _batteryVoltageMin;
|
|
public double BatteryVoltageMin { get => _batteryVoltageMin; set => SetProperty(ref _batteryVoltageMin, value, "BatteryVoltageMin"); }
|
|
|
|
private double _batteryVoltageMax;
|
|
public double BatteryVoltageMax { get => _batteryVoltageMax; set => SetProperty(ref _batteryVoltageMax, value, "BatteryVoltageMax"); }
|
|
}
|
|
}
|