devices.g10

G10 device implementation.

@dataclass
class G10HistoryStatus(radeye_comms_sdk.devices.base.BaseHistoryStatus):

Data class for parsed History status frame.

Parameters
  • raw_decimal: 16-bit status value
  • net_value: Bit 0 — net value active
  • operation_mode: Bit 1 — Ratemeter or Scaler
  • accumulated_counts: Bit 3 — accumulated counts active
  • background_measurement: Bit 4 — background measurement active
  • scaler_with: Bit 5 — Preset Counts or Preset Time
  • used_filter: Bits 6–7 — filter selection (B20 / B20-ER only)
  • used_filter_raw_decimal: Raw 2-bit filter code
  • number_of_used_nuclide: Bits 8–11 — nuclide index/count
  • display_unit: Bits 12–15 — display unit label
  • display_unit_raw_decimal: Raw 4-bit display unit code
G10HistoryStatus( display_unit: str = '', raw_decimal: int = 0, display_unit_raw_decimal: int = 0, net_value: bool = False, operation_mode: str = '', accumulated_counts: bool = False, background_measurement: bool = False, scaler_with: str = '', used_filter: str = '', number_of_used_nuclide: int = 0, used_filter_raw_decimal: int = 0)
@classmethod
def parse(cls, value: int | str) -> G10HistoryStatus:

Parse a History status value from an integer or hex string.

Parameters
  • value: 16-bit value as int, decimal string, or hex (e.g. 0x1A2B, 1A2B)
Returns

Parsed radeye_comms_sdk.radeye.devices.g10.G10HistoryStatus instance

RadEye G10 class

def read_raw_count_rate(self) -> Optional[list[int]]:

Parse raw count rate response with dead time correction.

Returns

None if no data was received, otherwise a list of raw count rates: [counter_1_in_cps, ttp_value, hv_power_in_cps]

def read_filtered_count_rate(self) -> Optional[list[int]]:

Read filtered count rate.

Returns

None if no data was received, otherwise value in 0.01 cps units

def read_display_value_and_status(self) -> Optional[radeye_comms_sdk.devices.base.DisplayStatusData]:

Read values displayed on the device screen and status information.

Returns

None if no data was received, otherwise a radeye_comms_sdk.radeye.devices._base.DisplayStatusData instance. The status field is a radeye_comms_sdk.radeye.devices.g10.G10HistoryStatus instance.

def read_values(self) -> Optional[list[int]]:

Read raw count rate THRESHOLD response specific to G10 devices.

Returns

None if no data was received, otherwise a list of the measured dose rate in µR/h

def read_measurement_units(self) -> Optional[dict[str, str]]:

Units for radiation values (e.g. Sv/h)

Returns

None if no data was received, otherwise a dictionary of the parsed units

def get_publisher_info(self) -> dict[int, dict[str, str]]:

Get ros publisher info for G10 device.

Returns

Dict of dictionaries {topic name, radiation type, muliplication factor}

def read_deadtime(self) -> Optional[int]:

Read dead time in ns

Returns

None if no data was received, otherwise the dead time in ns