TEDS¶
Readers for IEEE-1451.4 strain-gage and bridge-sensor Transducer Electronic Data Sheets (hardware and virtual). See the TEDS guide.
dtollib.teds ¶
TEDS (Transducer Electronic Data Sheet) read helpers โ ยง8.B5.
IEEE-1451.4 smart transducers store calibration metadata on the sensor
(hardware TEDS) or in a sidecar file (virtual TEDS). The DataAcq SDK
exposes four readers โ :func:read_strain_gage_teds,
:func:read_strain_gage_virtual_teds, :func:read_bridge_sensor_teds,
:func:read_bridge_sensor_virtual_teds โ backed by olDaRead*Teds.
Hardware reads are capability-gated: the owned DT9805/DT9806 report
supports_multisensor=False and the SDK returns ECODE 36, so the
hardware variants raise :class:~dtollib.errors.DtolCapabilityError
before touching the SDK (mirroring the :class:~dtollib.tasks.TaskBuilder
gate). Virtual reads parse a file and need no hardware, so they are not
gated.
Real-sensor verification is deferred until a multi-sensor DT module
(DT9828/9829/9837) is on the bench; until then the read path is exercised
against :class:~dtollib.backend.fake.FakeDtolBackend scripted payloads.
BridgeSensorTeds
dataclass
¶
BridgeSensorTeds(
*,
manufacturer_id,
model_number,
version_letter,
version_number,
serial_number,
sensor_impedance_ohms,
excitation_nominal_v,
min_physical_value,
max_physical_value,
min_electrical_value,
max_electrical_value,
raw,
)
Decoded bridge-sensor TEDS (BRIDGE_SENSOR_TEDS, TedsApi.h).
from_raw
classmethod
¶
Build from the backend's flattened BRIDGE_SENSOR_TEDS dict.
Source code in src/dtollib/teds.py
StrainGageTeds
dataclass
¶
StrainGageTeds(
*,
manufacturer_id,
model_number,
version_letter,
version_number,
serial_number,
gage_factor,
gage_resistance_ohms,
poisson_coefficient,
min_physical_value,
max_physical_value,
raw,
)
Decoded strain-gage TEDS (STRAIN_GAGE_TEDS, TedsApi.h).
Carries the basic-TEDS identity block plus the strain-gage-specific
calibration fields. raw retains every field the SDK populated so
callers can reach less-common members without a wrapper attribute.
from_raw
classmethod
¶
Build from the backend's flattened STRAIN_GAGE_TEDS dict.
Source code in src/dtollib/teds.py
read_bridge_sensor_teds ¶
Read on-sensor bridge TEDS for channel (capability-gated).
Source code in src/dtollib/teds.py
read_bridge_sensor_virtual_teds ¶
Read a bridge virtual-TEDS file (no hardware, no capability gate).
read_strain_gage_teds ¶
Read on-sensor strain-gage TEDS for channel (capability-gated).
Source code in src/dtollib/teds.py
read_strain_gage_virtual_teds ¶
Read a strain-gage virtual-TEDS file (no hardware, no capability gate).