This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using System.ComponentModel;
namespace DatabaseImport
{
/// <summary>
/// these are the different input modes for the data
/// </summary>
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum DigitalInputModes
{
[DescriptionAttribute("Transition low to high")]
TLH = 1 << 1, //Transition Low to High
[DescriptionAttribute("Transition high to low")]
THL = 1 << 2, //Transition High to Low
[DescriptionAttribute("Contact closure normally open")]
CCNO = 1 << 3, //set to contact closure normally open
[DescriptionAttribute("Contact closure normally closed")]
CCNC = 1 << 4 //set to contact closure normally closed
}
}

View File

@@ -0,0 +1,19 @@
using System.ComponentModel;
namespace DatabaseImport
{
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum DigitalOutputModes
{
[DescriptionAttribute("Off")]
NONE = 0, //digital channel's mode not set
[DescriptionAttribute("Five volt low to high")]
FVLH = 1 << 0, //set for 5 volt, low-to-high transition
[DescriptionAttribute("Five volt high to low")]
FVHL = 1 << 1, //set for 5 volt, high-to-low transition
[DescriptionAttribute("Contact closure normally open")]
CCNO = 1 << 2, //set to contact closure normally open
[DescriptionAttribute("Contact closure normally closed")]
CCNC = 1 << 3 //set to contact closure normally closed
}
}

View File

@@ -0,0 +1,78 @@
using System;
using System.ComponentModel;
namespace DatabaseImport
{
public class ExcitationVoltageOptions
{
/// <summary>
/// All available excitation voltages.
/// </summary>
public enum ExcitationVoltageOption
{
/// <summary>
/// undefined excitation voltage
/// </summary>
[VoltageMagnitude(0.0)]
[Description("Undefined")]
Undefined = 1,
/// <summary>
/// 2V
/// </summary>
[VoltageMagnitude(2.0)]
[Description("2.0")]
Volt2 = 2,
/// <summary>
/// 2.5V
/// </summary>
[VoltageMagnitude(2.5)]
[Description("2.5")]
Volt2_5 = 4,
/// <summary>
/// 3.0V
/// </summary>
[VoltageMagnitude(3.0)]
[Description("3.0")]
Volt3 = 8,
/// <summary>
/// 5V
/// </summary>
[VoltageMagnitude(5.0)]
[Description("5.0")]
Volt5 = 16,
/// <summary>
/// 10V
/// </summary>
[VoltageMagnitude(10.0)]
[Description("10.0")]
Volt10 = 32,
/// <summary>
/// 1V
/// </summary>
[VoltageMagnitude(1.0)]
[Description("1.0")]
Volt1 = 64
}
/// <summary>
/// Attribute for specifying the numerical magnitude of the attached field's
/// "representation". Intended to be used with enumerations whose members represent
/// voltage magnitude options so that the enum item can have a corresponding numerical
/// value that can be extracted and used in calculations.
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public class VoltageMagnitudeAttribute : Attribute
{
/// <summary>
/// returns voltage magnitude
/// </summary>
public double Value { get; }
/// <summary>
/// constructs a <see cref="ExcitationVoltageOptions.VoltageMagnitudeAttribute" />
/// with a given value
/// </summary>
/// <param name="value"></param>
public VoltageMagnitudeAttribute(double value) { Value = value; }
}
}
}

View File

@@ -0,0 +1,40 @@
namespace DatabaseImport
{
public enum HardwareTypes
{
SLICE_Base = 0,
SLICE_Bridge = 1,
SLICE_Distributor = 2,
TDAS_Pro_Rack = 3,
SLICE2_IEPE_Hi = 4,
SLICE2_IEPE_Lo = 5,
SLICE2_Bridge_Hi = 6,
SLICE2_Bridge_Lo = 7,
SLICE2_Base = 8,
TOM = 9,
SIM = 10,
DIM = 11,
G5VDS = 12,
Ribeye = 13,
RibeyeLED = 14,
SLICE_IEPE = 15,
SLICE1_5_Nano_Base = 16,
SLICE_Micro_Base = 17,
SLICE_NANO_Base = 18,
SLICE2_SIM = 19,
SLICE2_DIM = 20,
SLICE2_TOM = 21,
//G5IPORT=22,
G5INDUMMY = 23,
SLICE_EthernetController = 24,
SLICE1_5_Micro_Base = 25,
SLICE_LabEthernet = 26,
SLICE2_SLS = 27,
SLICE1_G5Stack = 28,
SLICE2_SLT = 29,
SLICE2_SLD = 30,
TDAS_LabRack = 31,
SLICE6_Base = 32,
SLICE6DB = 33
}
}

View File

@@ -0,0 +1,12 @@
namespace DatabaseImport
{
public enum NonLinearStyles
{
IRTraccManual,
IRTraccDiagnosticsZero,
IRTraccZeroMMmV,
IRTraccAverageOverTime,
Polynomial,
IRTraccCalFactor
}
}

View File

@@ -0,0 +1,11 @@
namespace DatabaseImport
{
public enum SensorStatus
{
Available,
InUse,
OutForService,
OutForCalibration,
Retired
}
}

View File

@@ -0,0 +1,22 @@
namespace DatabaseImport
{
public enum ZeroMethodType
{
// Lots of legacy compatibility (e.g. importing GM ISF) depends on the order/value of this enum.
/// <summary>
/// calculate electrical zero using an average over time
/// </summary>
//[Description("Average Over Time")]
AverageOverTime = 0,
/// <summary>
/// calculate zero using time in pre-event
/// </summary>
//[Description("Use Diagnostics Zero")]
UsePreEventDiagnosticsZero = 1,
/// <summary>
/// calculate zero using injected value
/// </summary>
//[Description("Absolute Zero")]
None = 2
}
}

View File

@@ -0,0 +1,23 @@
using System.ComponentModel;
namespace DatabaseImport
{
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum SquibMeasurementType
{
NONE = 0, //the squib's measurement mode has not been set
CURRENT = 1 << 0, //the squib's current will be recorded
INIT_SIGNAL = 1 << 1, //the squib's initiation indicator will be recorded
VOLTAGE = 1 << 2, //the squib's voltage will be recorded
}
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum SquibFireMode
{
NONE = 1 << 0, //squib's fire mode not set
[DescriptionAttribute("Capacitor discharge")]
CAP = 1 << 1, //use capacitor discharge
[DescriptionAttribute("Constant current")]
CONSTANT = 1 << 2, //use constant current discharge
AC = 1 << 3 //use AC discharge
}
}

View File

@@ -0,0 +1,32 @@
using System;
namespace DatabaseImport
{
[Flags]
public enum SupportedExportFormatBitFlags
{
none = 0x0,
csvunfiltered = 0x1,
diademadc = 0x2,
isounfiltered = 0x4,
somatunfiltered = 0x8,
tdmsadc = 0x10,
toyotaunfiltered = 0x20,
tsvunfiltered = 0x40,
csvfiltered = 0x80,
//diademfiltered = 0x100, //unused & available
isofiltered = 0x200,
somatfiltered = 0x400,
tdasadc = 0x800,
toyotafiltered = 0x1000,
tsvfiltered = 0x2000,
rdfadc = 0x4000,
ChryslerDDAS = 0x8000,
HDFUnfiltered = 0x10000,
HDFFiltered = 0x20000,
HDFMV = 0x40000,
HDFADC = 0x80000,
xlsxfiltered = 0x100000,
xlsxunfiltered = 0x200000
}
}