--- source_files: - Common/DTS.CommonCore/Constant/XamlConstants.xaml.cs - Common/DTS.CommonCore/Constant/DigitalInputs.cs - Common/DTS.CommonCore/Constant/EmbeddedSensors.cs - Common/DTS.CommonCore/Constant/Constants.cs generated_at: "2026-04-17T15:37:19.626495+00:00" model: "zai-org/GLM-5-FP8" schema_version: 1 sha256: "11f8285a2389aede" --- # Documentation: DTS.CommonCore Constants Module ## 1. Purpose This module provides centralized constant definitions for the DTS data acquisition system. It consolidates hardware configuration thresholds, embedded sensor parameters, digital input breakpoints, clock synchronization profiles, recording mode definitions, and application-wide settings. The module serves as the single source of truth for magic numbers, hardware limits, default values, and configuration boundaries used throughout the system. --- ## 2. Public Interface ### `DTS.Common.Constant.XamlConstants` (partial class) - **Signature**: `public partial class XamlConstants` - **Behavior**: Empty partial class in code-behind; intended to be paired with a XAML resource file. No members defined in this source file. --- ### `DTS.Common.Constant.DigitalInputs` (static class) | Member | Signature | Description | |--------|-----------|-------------| | `ConstantCurrentBreakPointDefault` | `public const double` | Default breakpoint value (19005D) for contact closure digital input transitions. | | `VoltageInputBreakPointDefault` | `public const double` | Default breakpoint value (19661D) for voltage input digital modes (THL and TLH). | | `DisplaySPDADCDefault` | `public const bool` | Default display setting for SLICE Pro Digital ADC (false). | | `ConstantCurrentBreakPoint` | `public static double { get; set; }` | Mutable static property for current constant current breakpoint. Defaults to `ConstantCurrentBreakPointDefault`. Does not persist to storage. | | `VoltageInputBreakPoint` | `public static double { get; set; }` | Mutable static property for voltage input breakpoint. Defaults to `VoltageInputBreakPointDefault`. Does not persist to storage. | | `DisplaySPDADC` | `public static bool { get; set; }` | Mutable static property controlling SLICE Pro Digital analog ADC display. Defaults to `DisplaySPDADCDefault`. Does not persist to storage. | --- ### `DTS.Common.Constant.EmbeddedSensors` (static class) **Power Management / Wake Up Constants:** | Member | Value | Description | |--------|-------|-------------| | `MotionDetectInactivitySMaximum` | 300 | Maximum motion detect inactivity in seconds (5 minutes). | | `MagnetTimeoutMsMaximum` | 300000 | Maximum magnet timeout in milliseconds (5 minutes). | **Device Trigger Ranges:** | Member | Value | Description | |--------|-------|-------------| | `EmbeddedLowGLinearAccelerometerRange` | 8 | Low-G linear accelerometer range. | | `EmbeddedHighGLinearAccelerometerRange` | 400 | High-G linear accelerometer range. | | `EmbeddedAngularAccelerometerRange` | 2000 | Angular accelerometer range. | | `EmbeddedAngularRateSensorRange` | 2000 | Angular rate sensor range. | | `HumidityMinimum` / `HumidityMaximum` | 10 / 100 | Humidity percentage bounds. | | `PressureMinimum` / `PressureMaximum` | 5 / 15 | Pressure bounds. | | `TemperatureMinimum` / `TemperatureMaximum` | 0 / 65 | Temperature bounds (Celsius). | | `TimedIntervalEventDurationMsMinimum` / `Maximum` | 30 / 300000 | Timed interval event duration bounds in ms. | | `TimedIntervalNumberOfEventsMaximum` | 100 | Maximum number of timed interval events. | | `IntervalBetweenEventStartsMinutesMaximum` | 1440 | Maximum interval between event starts (24 hours). | **Sample Rate Limits (from device IC spec):** | Member | Minimum | Maximum | |--------|---------|---------| | `EmbeddedLowGLinearAccelerometerSampleRate` | 1 | 6400 | | `EmbeddedHighGLinearAccelerometerSampleRate` | 1 | 5120 | | `EmbeddedAngularAccelerometerSampleRate` | 1 | 1600 | | `EmbeddedAngularAccelerometerAndRateSensorSampleRate` | 1 | 5120 | | `EmbeddedAtmosphericSensorSampleRate` | 1 | 157 | **Default Sample Rates (set to maximum SR):** | Member | Value | |--------|-------| | `DefaultEmbeddedLowGLinearAccelerometerSampleRate` | 6400 | | `DefaultEmbeddedHighGLinearAccelerometerSampleRate` | 5120 | | `DefaultEmbeddedAngularAccelerometerSampleRate` | 1600 | | `DefaultEmbeddedAngularAccelerometerAndRateSensorSampleRate` | 5120 | | `DefaultEmbeddedAtmosphericSensorSampleRate` | 157 | --- ### `DTS.Common.Constants` (static class) **String Constants:** | Member | Value | Description | |--------|-------|-------------| | `ROI_TAG` | "ROI" | Region of interest tag identifier. | | `ALL_TAG` | "ALL" | All-encompassing tag identifier. | | `DAS_TEST_SETUPS` | "DASTestSetup" | DAS test setup directory/file identifier. | | `USB` | "USB" | USB connection identifier. | | `BACKUP_HEADER_EXTENSION` | ".header.bak" | Backup header file extension. | | `BACKUP_FILE_EXTENSION` | ".bak" | Backup file extension. | | `DAS_CONFIGS` | "DASConfigs" | DAS configurations identifier. | | `TEMP_FILE_EXTENSION` | ".tmp" | Temporary file extension. | | `UDP_STREAM_CH10_TF2` | "2HDR" | UDP streaming header identifier. | | `EventNumber` | "_Event Number" | Event number label. | | `UseMeasuredExcitation` | "UseMeasuredExcitation" | Measured excitation setting key. | | `ManualsFolder` | "Manuals" | Manuals directory name. | | `WindowsExplorer` | "explorer.exe" | Windows Explorer executable. | | `NoValue` | "NOVALUE" | No-value placeholder. |