Skip to content
Snippets Groups Projects

Multi-threading locks and monitoring threads

Open Diego Fabrizio Lopez Gutierrez requested to merge monitoring into master
7 files
+ 369
340
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 4
1
@@ -12,7 +12,7 @@ class KCU:
@@ -12,7 +12,7 @@ class KCU:
def __init__(self,
def __init__(self,
name="my_device",
name="my_device",
ipb_path="ipbusudp-2.0://192.168.0.10:50001",
ipb_path="chtcp-2.0://localhost:10203?target=192.168.0.11:50001",
adr_table="../module_test_fw/address_tables/etl_test_fw.xml",
adr_table="../module_test_fw/address_tables/etl_test_fw.xml",
dummy=False):
dummy=False):
@@ -21,6 +21,9 @@ class KCU:
@@ -21,6 +21,9 @@ class KCU:
self.dummy = dummy
self.dummy = dummy
 
if isinstance(ipb_path, str) and ("chtcp-2.0" not in ipb_path):
 
raise ValueError(f"control_hub MUST be used, but ipb_path {ipb_path} was provided.")
 
if not self.dummy:
if not self.dummy:
try:
try:
self.hw = uhal.getDevice("my_device", ipb_path, "file://" + adr_table)
self.hw = uhal.getDevice("my_device", ipb_path, "file://" + adr_table)
Loading