Files
2026-04-17 14:55:32 -04:00

2.2 KiB

source_files, generated_at, model, schema_version, sha256
source_files generated_at model schema_version sha256
DataPRO/Modules/Hardware/AddEditHardware/Model/DASModule.cs
2026-04-17T15:57:30.628257+00:00 zai-org/GLM-5-FP8 1 22ac148f69b9c507

Documentation: DASModule.cs

1. Purpose

DASModule is a model class representing a Data Acquisition System (DAS) hardware module within the hardware configuration system. It serves as a data-bound view model for the Add/Edit Hardware feature, managing module metadata including type identification, bridge configuration, serial numbers, and visual representation. The class implements property change notification to support WPF data binding and automatically resolves appropriate hardware images based on module configuration.


2. Public Interface

Class: DASModule

Namespace: HardwareList.Model
Inheritance: BasePropertyChanged
Implements: IAddEditHardwareDASModule

Properties

Property Type Default Description
Disabled bool false Flag indicating whether the module is disabled.
SLICEBridgeType SLICEBridgeTypes SLICEBridgeTypes.Bridge The bridge type for SLICE modules. Setter triggers SetImage().
ModuleType HardwareTypes HardwareTypes.UNDEFINED The hardware module type. Setter triggers SetImage().
SerialNumber string "" The serial number of the module.
DASImage ImageSource null The visual representation of the module as a WPF image source.
AvailableNanoBridges SLICEBridgeTypes[] static readonly Array of bridge types available for Nano hardware: [Bridge, IEPE].
AvailableMicroBridges SLICEBridgeTypes[] static readonly Array of bridge types available for Micro hardware: [Bridge, IEPE, ARS, ACC].
AvailableRACKModules HardwareTypes[] static readonly Array of available rack module types: [UNDEFINED, SIM, TOM, DIM].
OwningHardware IAddEditHardwareHardware N/A Reference to the parent hardware object.

Methods

GetSerialNumberPrefix()

  • Signature: public string GetSerialNumberPrefix()
  • Returns: A string prefix corresponding to the module type for serial number formatting.