self.debug_stream("KBD interrupt caught, leaving data read loop.")
self.stop_data_read_loop=True
exceptExceptionase:
print("Cannot call the method %s in the OPC-UA server %s. Trace: %s"%(self.record_cross,self.OPC_Server_Name,traceback.format_exc
()))
self.error_stream("Exception: %s. Cannot call the method %s in the OPC-UA server %s. Trace: %s",e,self.record_cross,self.OPC_Server_Name,traceback.format_exc())
# PROTECTED REGION END # // StatsCrosslet.class_variable
# -----------------
...
...
@@ -98,14 +102,14 @@ class StatsCrosslet(Device):
default_value=55556
)
OPC_time_out=device_property(
dtype='DevULong',
default_value=1000
OPC_Time_out=device_property(
dtype='DevDouble',
default_value=1.0
)
Default_pause_time=device_property(
dtype='DevDouble',
default_value=60.0
default_value=1.0
)
Default_subband=device_property(
...
...
@@ -132,7 +136,7 @@ class StatsCrosslet(Device):
)
time_stamp=attribute(
dtype='DevDouble',
dtype='DevString',
)
pause_time=attribute(
...
...
@@ -140,28 +144,19 @@ class StatsCrosslet(Device):
access=AttrWriteType.READ_WRITE,
)
visibilities=attribute(
dtype=('DevDouble',),
max_dim_x=96,
)
rcu_modes=attribute(
dtype=('DevString',),
max_dim_x=96,
)
raw_visibilities=attribute(
visibilities_imag=attribute(
dtype=(('DevDouble',),),
max_dim_x=96,max_dim_y=96,
)
# -----
# Pipes
# -----
pipe_visibilities=pipe(
)
pipe_raw_visibilities=pipe(
visibilities_real=attribute(
dtype=(('DevDouble',),),
max_dim_x=96,max_dim_y=96,
)
# ---------------
...
...
@@ -172,25 +167,26 @@ class StatsCrosslet(Device):
"""Initialises the attributes and properties of the StatsCrosslet."""
Device.init_device(self)
# PROTECTED REGION ID(StatsCrosslet.init_device) ENABLED START #