@@ -108,13 +108,26 @@ def buildepochtable(self) -> list[dict[str, Any]]:
108108 for daqsys in daqsystems :
109109 # Get device epoch table
110110 device_et = daqsys .epochtable ()
111+ daqsys_name = getattr (daqsys , "name" , getattr (daqsys , "_name" , "" ))
111112
112113 for device_entry in device_et :
113114 # Check if any epochprobemap matches this probe
114115 epochprobemaps = device_entry .get ("epochprobemap" , [])
115116 matching_epm = self ._find_matching_epochprobemap (epochprobemaps )
116117
117118 if matching_epm is not None :
119+ # Only include if the matching epochprobemap's device
120+ # belongs to this DAQ system
121+ epm_devicename = ""
122+ if hasattr (matching_epm , "devicename" ):
123+ epm_devicename = matching_epm .devicename
124+ elif hasattr (matching_epm , "devicestring" ):
125+ parts = matching_epm .devicestring .split (":" )
126+ epm_devicename = parts [0 ] if parts else ""
127+
128+ if epm_devicename .lower () != daqsys_name .lower ():
129+ continue
130+
118131 epoch_number += 1
119132
120133 # Get clock and timing info from device entry
@@ -381,12 +394,25 @@ def buildmultipleepochtables(
381394 for _daqsys_id , device_info in device_tables .items ():
382395 daqsys = device_info ["system" ]
383396 device_et = device_info ["epochtable" ]
397+ daqsys_name = getattr (daqsys , "name" , getattr (daqsys , "_name" , "" ))
384398
385399 for device_entry in device_et :
386400 epochprobemaps = device_entry .get ("epochprobemap" , [])
387401 matching_epm = probe ._find_matching_epochprobemap (epochprobemaps )
388402
389403 if matching_epm is not None :
404+ # Only include if the matching epochprobemap's device
405+ # belongs to this DAQ system
406+ epm_devicename = ""
407+ if hasattr (matching_epm , "devicename" ):
408+ epm_devicename = matching_epm .devicename
409+ elif hasattr (matching_epm , "devicestring" ):
410+ parts = matching_epm .devicestring .split (":" )
411+ epm_devicename = parts [0 ] if parts else ""
412+
413+ if epm_devicename .lower () != daqsys_name .lower ():
414+ continue
415+
390416 epoch_number += 1
391417 et .append (
392418 {
0 commit comments