radiacode
radiacode copied to clipboard
decoding the flag,unit and event data
As the data comes in the real time data is decoded with a python struct. real_time_flags is part of that data.
I can trigger the real_time_flags to change value by moving my source to NoAlarm, Alarm1, Alarm2 which seems to correspond to real_time_flags value of 0, 8, and 9. Again that is an assumption during my testing.
Q1. Is there a way to know what the real_time_flags values mean?
decode_VS_Data br=['2608008e01000000430000004a0000cc3100000080d2432f6e973a6000b1004222084b0101813100000400320000000000d143569f9b3a0000e243bb27973a0000c343a2b4973a0000c2433bdfaf3a'] 2024-01-31T09:46:15.171706 RealTimeData(dt=datetime.datetime(2024, 1, 31, 9, 46, 15, 171706), count_rate=421.0, count_rate_err=9.6, dose_rate=0.0011553223012015224, dose_rate_err=17.7, flags=8770, real_time_flags=8)
@dataclass
class RealTimeData:
dt: datetime.datetime
count_rate: float
count_rate_err: float # %
dose_rate: int
dose_rate_err: int
flags: int
real_time_flags: int