Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
390a3a3e
Commit
390a3a3e
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
rewrote configure_for_off function
parent
b980b2a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!32
Resolve L2SS-216 "2021 05 17 branched from master sdp hotfix"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
devices/APSCTL.py
+1
-1
1 addition, 1 deletion
devices/APSCTL.py
devices/PCC.py
+28
-27
28 additions, 27 deletions
devices/PCC.py
devices/SDP.py
+4
-7
4 additions, 7 deletions
devices/SDP.py
with
33 additions
and
35 deletions
devices/APSCTL.py
+
1
−
1
View file @
390a3a3e
...
@@ -153,7 +153,7 @@ class APSCTL(hardware_device):
...
@@ -153,7 +153,7 @@ class APSCTL(hardware_device):
try
:
try
:
self
.
opcua_connection
.
stop
()
self
.
opcua_connection
.
stop
()
except
Exception
as
e
:
except
Exception
as
e
:
self
.
error
_stream
(
"
Caught this exception when going to OFF state:
"
.
format
(
e
))
self
.
warn
_stream
(
"
Exception while stopping OPC ua connection in configure_for_off function: {}. Exception ignored
"
.
format
(
e
))
@log_exceptions
()
@log_exceptions
()
def
configure_for_initialise
(
self
):
def
configure_for_initialise
(
self
):
...
...
This diff is collapsed.
Click to expand it.
devices/PCC.py
+
28
−
27
View file @
390a3a3e
...
@@ -69,39 +69,37 @@ class PCC(hardware_device):
...
@@ -69,39 +69,37 @@ class PCC(hardware_device):
# ----------
# ----------
# Attributes
# Attributes
# ----------
# ----------
RCU_mask_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_mask_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
32
,),
access
=
AttrWriteType
.
READ_WRITE
)
Ant_mask_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:Ant_mask_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
3
,
32
),
access
=
AttrWriteType
.
READ_WRITE
)
Ant_mask_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:Ant_mask_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
3
,
32
),
access
=
AttrWriteType
.
READ_WRITE
)
CLK_Enable_PWR_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:CLK_Enable_PWR_R
"
],
datatype
=
numpy
.
bool_
)
CLK_I2C_STATUS_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:CLK_I2C_STATUS_R
"
],
datatype
=
numpy
.
int64
)
CLK_PLL_error_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:CLK_PLL_error_R
"
],
datatype
=
numpy
.
bool_
)
CLK_PLL_locked_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:CLK_PLL_locked_R
"
],
datatype
=
numpy
.
bool_
)
CLK_monitor_rate_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:CLK_monitor_rate_RW
"
],
datatype
=
numpy
.
int64
,
access
=
AttrWriteType
.
READ_WRITE
)
CLK_translator_busy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:CLK_translator_busy_R
"
],
datatype
=
numpy
.
bool_
)
HBA_element_beamformer_delays_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_beamformer_delays_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
))
HBA_element_beamformer_delays_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_beamformer_delays_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
),
access
=
AttrWriteType
.
READ_WRITE
)
HBA_element_led_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_led_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
))
HBA_element_led_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_led_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
),
access
=
AttrWriteType
.
READ_WRITE
)
HBA_element_LNA_pwr_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_LNA_pwr_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
))
HBA_element_LNA_pwr_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_LNA_pwr_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
),
access
=
AttrWriteType
.
READ_WRITE
)
HBA_element_pwr_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_pwr_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
))
HBA_element_pwr_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_pwr_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_ADC_lock_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_ADC_lock_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_attenuator_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_attenuator_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_attenuator_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_attenuator_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_attenuator_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_attenuator_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_attenuator_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_attenuator_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_band_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_band_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_band_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_band_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_band_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_band_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_band_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_band_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_I2C_STATUS_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_I2C_STATUS_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,))
RCU_ID_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_ID_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,))
RCU_LED0_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_LED0_R
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
32
,))
RCU_LED0_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_LED0_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
32
,),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_LED1_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_LED1_R
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
32
,))
RCU_LED1_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_LED1_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
32
,),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_mask_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_mask_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
32
,),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_monitor_rate_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_monitor_rate_RW
"
],
datatype
=
numpy
.
int64
,
access
=
AttrWriteType
.
READ_WRITE
)
RCU_Pwr_dig_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_Pwr_dig_R
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
32
,))
RCU_temperature_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_temperature_R
"
],
datatype
=
numpy
.
float64
,
dims
=
(
32
,))
RCU_temperature_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_temperature_R
"
],
datatype
=
numpy
.
float64
,
dims
=
(
32
,))
RCU_translator_busy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_translator_busy_R
"
],
datatype
=
numpy
.
bool_
)
RCU_Pwr_dig_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_Pwr_dig_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,))
RCU_LED0_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_LED0_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,))
RCU_LED0_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_LED0_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_ADC_lock_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_ADC_lock_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_ADC_SYNC_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_ADC_SYNC_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_ADC_JESD_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_ADC_JESD_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_ADC_CML_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_ADC_CML_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_OUT1_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_OUT1_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_OUT2_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_OUT2_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
3
,
32
))
RCU_ID_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_ID_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,))
RCU_version_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_version_R
"
],
datatype
=
numpy
.
str_
,
dims
=
(
32
,))
RCU_version_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_version_R
"
],
datatype
=
numpy
.
str_
,
dims
=
(
32
,))
HBA_element_beamformer_delays_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_beamformer_delays_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
))
HBA_element_beamformer_delays_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_beamformer_delays_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
),
access
=
AttrWriteType
.
READ_WRITE
)
HBA_element_pwr_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_pwr_R
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
))
HBA_element_pwr_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:HBA_element_pwr_RW
"
],
datatype
=
numpy
.
int64
,
dims
=
(
32
,
96
),
access
=
AttrWriteType
.
READ_WRITE
)
RCU_monitor_rate_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:PCC
"
,
"
2:RCU_monitor_rate_RW
"
],
datatype
=
numpy
.
float64
,
access
=
AttrWriteType
.
READ_WRITE
)
@log_exceptions
()
@log_exceptions
()
def
delete_device
(
self
):
def
delete_device
(
self
):
"""
Hook to delete resources allocated in init_device.
"""
Hook to delete resources allocated in init_device.
...
@@ -125,7 +123,7 @@ class PCC(hardware_device):
...
@@ -125,7 +123,7 @@ class PCC(hardware_device):
try
:
try
:
self
.
opcua_connection
.
stop
()
self
.
opcua_connection
.
stop
()
except
Exception
as
e
:
except
Exception
as
e
:
self
.
error
_stream
(
"
Caught this exception when going to OFF state:
"
.
format
(
e
))
self
.
warn
_stream
(
"
Exception while stopping OPC ua connection in configure_for_off function: {}. Exception ignored
"
.
format
(
e
))
@log_exceptions
()
@log_exceptions
()
def
configure_for_initialise
(
self
):
def
configure_for_initialise
(
self
):
...
@@ -135,8 +133,11 @@ class PCC(hardware_device):
...
@@ -135,8 +133,11 @@ class PCC(hardware_device):
self
.
function_mapping
=
{}
self
.
function_mapping
=
{}
self
.
function_mapping
[
"
RCU_on
"
]
=
{}
self
.
function_mapping
[
"
RCU_on
"
]
=
{}
self
.
function_mapping
[
"
RCU_off
"
]
=
{}
self
.
function_mapping
[
"
RCU_off
"
]
=
{}
self
.
function_mapping
[
"
ADC_on
"
]
=
{}
self
.
function_mapping
[
"
RCU_update
"
]
=
{}
self
.
function_mapping
[
"
CLK_on
"
]
=
{}
self
.
function_mapping
[
"
CLK_on
"
]
=
{}
self
.
function_mapping
[
"
CLK_off
"
]
=
{}
self
.
function_mapping
[
"
CLK_off
"
]
=
{}
self
.
function_mapping
[
"
CLK_PLL_setup
"
]
=
{}
# set up the OPC ua client
# set up the OPC ua client
self
.
OPCua_client
=
OPCUAConnection
(
"
opc.tcp://{}:{}/
"
.
format
(
self
.
OPC_Server_Name
,
self
.
OPC_Server_Port
),
"
http://lofar.eu
"
,
self
.
OPCua_client
=
OPCUAConnection
(
"
opc.tcp://{}:{}/
"
.
format
(
self
.
OPC_Server_Name
,
self
.
OPC_Server_Port
),
"
http://lofar.eu
"
,
...
...
This diff is collapsed.
Click to expand it.
devices/SDP.py
+
4
−
7
View file @
390a3a3e
...
@@ -64,8 +64,6 @@ class SDP(hardware_device):
...
@@ -64,8 +64,6 @@ class SDP(hardware_device):
# ----------
# ----------
# Attributes
# Attributes
# ----------
# ----------
# SDP will switch from fpga_mask_RW to tr_fpga_mask_RW, offer both for now as its a critical flag
tr_fpga_mask_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:tr_fpga_mask_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
fpga_mask_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_mask_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
fpga_mask_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_mask_RW
"
],
datatype
=
numpy
.
bool_
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
fpga_scrap_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_scrap_R
"
],
datatype
=
numpy
.
int32
,
dims
=
(
2048
,))
fpga_scrap_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_scrap_R
"
],
datatype
=
numpy
.
int32
,
dims
=
(
2048
,))
fpga_scrap_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_scrap_RW
"
],
datatype
=
numpy
.
int32
,
dims
=
(
2048
,),
access
=
AttrWriteType
.
READ_WRITE
)
fpga_scrap_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_scrap_RW
"
],
datatype
=
numpy
.
int32
,
dims
=
(
2048
,),
access
=
AttrWriteType
.
READ_WRITE
)
...
@@ -88,10 +86,8 @@ class SDP(hardware_device):
...
@@ -88,10 +86,8 @@ class SDP(hardware_device):
fpga_sdp_info_station_id_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_station_id_R
"
],
datatype
=
numpy
.
uint16
,
dims
=
(
16
,))
fpga_sdp_info_station_id_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_station_id_R
"
],
datatype
=
numpy
.
uint16
,
dims
=
(
16
,))
fpga_sdp_info_observation_id_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_observation_id_RW
"
],
datatype
=
numpy
.
uint32
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
fpga_sdp_info_observation_id_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_observation_id_RW
"
],
datatype
=
numpy
.
uint32
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
fpga_sdp_info_observation_id_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_observation_id_R
"
],
datatype
=
numpy
.
uint32
,
dims
=
(
16
,))
fpga_sdp_info_observation_id_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_observation_id_R
"
],
datatype
=
numpy
.
uint32
,
dims
=
(
16
,))
fpga_sdp_info_nyquist_sampling_zone_index_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_nyquist_sampling_zone_index_RW
"
],
datatype
=
numpy
.
uint16
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
fpga_sdp_info_source_id_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_source_id_RW
"
],
datatype
=
numpy
.
uint16
,
dims
=
(
16
,),
access
=
AttrWriteType
.
READ_WRITE
)
fpga_sdp_info_nyquist_sampling_zone_index_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_nyquist_sampling_zone_index_R
"
],
datatype
=
numpy
.
uint16
,
dims
=
(
16
,))
fpga_sdp_info_source_id_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_source_id_R
"
],
datatype
=
numpy
.
uint16
,
dims
=
(
16
,))
fpga_sdp_info_subband_calibrated_flag_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_subband_calibrated_flag_R
"
],
datatype
=
numpy
.
uint16
,
dims
=
(
16
,))
fpga_sdp_info_beamlet_scale_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_sdp_info_beamlet_scale_R
"
],
datatype
=
numpy
.
uint16
,
dims
=
(
16
,))
tr_busy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:tr_busy_R
"
],
datatype
=
numpy
.
bool_
)
tr_busy_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:tr_busy_R
"
],
datatype
=
numpy
.
bool_
)
tr_reload_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:tr_reload_RW
"
],
datatype
=
numpy
.
bool_
,
access
=
AttrWriteType
.
READ_WRITE
)
tr_reload_RW
=
attribute_wrapper
(
comms_annotation
=
[
"
2:tr_reload_RW
"
],
datatype
=
numpy
.
bool_
,
access
=
AttrWriteType
.
READ_WRITE
)
...
@@ -102,6 +98,7 @@ class SDP(hardware_device):
...
@@ -102,6 +98,7 @@ class SDP(hardware_device):
fpga_hardware_version_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_hardware_version_R
"
],
datatype
=
numpy
.
str_
,
dims
=
(
16
,))
fpga_hardware_version_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:fpga_hardware_version_R
"
],
datatype
=
numpy
.
str_
,
dims
=
(
16
,))
tr_software_version_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:tr_software_version_R
"
],
datatype
=
numpy
.
str_
)
tr_software_version_R
=
attribute_wrapper
(
comms_annotation
=
[
"
2:tr_software_version_R
"
],
datatype
=
numpy
.
str_
)
def
always_executed_hook
(
self
):
def
always_executed_hook
(
self
):
"""
Method always executed before any TANGO command is executed.
"""
"""
Method always executed before any TANGO command is executed.
"""
pass
pass
...
@@ -130,7 +127,7 @@ class SDP(hardware_device):
...
@@ -130,7 +127,7 @@ class SDP(hardware_device):
try
:
try
:
self
.
opcua_connection
.
stop
()
self
.
opcua_connection
.
stop
()
except
Exception
as
e
:
except
Exception
as
e
:
self
.
error
_stream
(
"
Caught this exception when going to OFF state:
"
.
format
(
e
))
self
.
warn
_stream
(
"
Exception while stopping OPC ua connection in configure_for_off function: {}. Exception ignored
"
.
format
(
e
))
@log_exceptions
()
@log_exceptions
()
def
configure_for_initialise
(
self
):
def
configure_for_initialise
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment