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
f6e1e826
Commit
f6e1e826
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
a
parent
e7237b69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!164
Resolve L2SS-334 "2021 10 21 replace streams with logger"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devices/clients/comms_client.py
+1
-0
1 addition, 0 deletions
devices/clients/comms_client.py
jupyter-notebooks/test_device.ipynb
+15
-48
15 additions, 48 deletions
jupyter-notebooks/test_device.ipynb
with
16 additions
and
48 deletions
devices/clients/comms_client.py
+
1
−
0
View file @
f6e1e826
...
@@ -265,3 +265,4 @@ class AsyncCommClient(object):
...
@@ -265,3 +265,4 @@ class AsyncCommClient(object):
future
=
asyncio
.
run_coroutine_threadsafe
(
self
.
stop
(),
self
.
event_loop
)
future
=
asyncio
.
run_coroutine_threadsafe
(
self
.
stop
(),
self
.
event_loop
)
return
future
.
result
()
return
future
.
result
()
This diff is collapsed.
Click to expand it.
jupyter-notebooks/test_device.ipynb
+
15
−
48
View file @
f6e1e826
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
37
,
"execution_count":
15
,
"id": "waiting-chance",
"id": "waiting-chance",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
38
,
"execution_count":
16
,
"id": "moving-alexandria",
"id": "moving-alexandria",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
39
,
"execution_count":
17
,
"id": "ranking-aluminum",
"id": "ranking-aluminum",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
40
,
"execution_count":
18
,
"id": "beneficial-evidence",
"id": "beneficial-evidence",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
...
@@ -140,61 +140,28 @@
...
@@ -140,61 +140,28 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 20,
"execution_count": 20,
"id": "
sporting-current
",
"id": "
252e49de
",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"name": "stdout",
"data": {
"output_type": "stream",
"text/plain": [
"text": [
"array([0., 0.])"
"[False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]\n"
]
]
},
},
"execution_count": 20,
{
"metadata": {},
"ename": "AttributeError",
"output_type": "execute_result"
"evalue": "RCU_monitor_rate_RW",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mConnectionFailed\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py\u001b[0m in \u001b[0;36m__DeviceProxy__getattr\u001b[0;34m(self, name)\u001b[0m\n\u001b[1;32m 326\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 327\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__refresh_cmd_cache\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 328\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mException\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py\u001b[0m in \u001b[0;36m__DeviceProxy__refresh_cmd_cache\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 241\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m__DeviceProxy__refresh_cmd_cache\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 242\u001b[0;31m \u001b[0mcmd_list\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcommand_list_query\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 243\u001b[0m \u001b[0mcmd_cache\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m{\u001b[0m\u001b[0;34m}\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mConnectionFailed\u001b[0m: DevFailed[\nDevError[\n desc = Device lts/sst/1 is not exported (hint: try starting the device server)\n origin = DeviceProxy::get_corba_name()\n reason = API_DeviceNotExported\nseverity = ERR]\n]",
"\nThe above exception was the direct cause of the following exception:\n",
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/tmp/ipykernel_22/1020840340.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0md\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mRCU_mask_RW\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 7\u001b[0;31m \u001b[0mmonitor_rate\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0md\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mRCU_monitor_rate_RW\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 8\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"current monitoring rate: {}, setting to {}\"\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmonitor_rate\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmonitor_rate\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0mmonitor_rate\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mmonitor_rate\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py\u001b[0m in \u001b[0;36m__DeviceProxy__getattr\u001b[0;34m(self, name)\u001b[0m\n\u001b[1;32m 353\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mread_pipe\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 354\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 355\u001b[0;31m \u001b[0msix\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mraise_from\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mAttributeError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mname\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcause\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 356\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 357\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.7/dist-packages/six.py\u001b[0m in \u001b[0;36mraise_from\u001b[0;34m(value, from_value)\u001b[0m\n",
"\u001b[0;31mAttributeError\u001b[0m: RCU_monitor_rate_RW"
]
}
}
],
],
"source": [
"source": [
"d.RCU_mask_RW = [False, False, False, False, False, False, False, False, False, False, False, False,\n",
"d.UNB2_POL_QSFP_N23_TEMP_R"
" False, False, False, False, False, False, False, False, False, False, False, False,\n",
" False, False, False, False, False, False, False, False,]\n",
"time.sleep(1)\n",
"print(d.RCU_mask_RW)\n",
"\n",
"monitor_rate = d.RCU_monitor_rate_RW\n",
"print(\"current monitoring rate: {}, setting to {}\".format(monitor_rate, monitor_rate + 1))\n",
"monitor_rate = monitor_rate + 1\n",
"\n",
"time.sleep(1)\n"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": null,
"id": "sharing-mechanics",
"id": "d348a3c6",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "ruled-tracy",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": []
"source": []
...
...
%% Cell type:code id:waiting-chance tags:
%% Cell type:code id:waiting-chance tags:
```
python
```
python
import
time
import
time
import
numpy
import
numpy
```
```
%% Cell type:code id:moving-alexandria tags:
%% Cell type:code id:moving-alexandria tags:
```
python
```
python
d
=
DeviceProxy
(
"
LTS/UNB2/1
"
)
d
=
DeviceProxy
(
"
LTS/UNB2/1
"
)
```
```
%% Cell type:code id:ranking-aluminum tags:
%% Cell type:code id:ranking-aluminum tags:
```
python
```
python
state
=
str
(
d
.
state
())
state
=
str
(
d
.
state
())
if
state
==
"
OFF
"
:
if
state
==
"
OFF
"
:
d
.
initialise
()
d
.
initialise
()
time
.
sleep
(
1
)
time
.
sleep
(
1
)
state
=
str
(
d
.
state
())
state
=
str
(
d
.
state
())
if
state
==
"
STANDBY
"
:
if
state
==
"
STANDBY
"
:
d
.
on
()
d
.
on
()
state
=
str
(
d
.
state
())
state
=
str
(
d
.
state
())
if
state
==
"
ON
"
:
if
state
==
"
ON
"
:
print
(
"
Device is now in on state
"
)
print
(
"
Device is now in on state
"
)
else
:
else
:
print
(
f
"
Device is now in
{
state
}
state
"
)
print
(
f
"
Device is now in
{
state
}
state
"
)
```
```
%% Output
%% Output
Device is now in on state
Device is now in on state
%% Cell type:code id:beneficial-evidence tags:
%% Cell type:code id:beneficial-evidence tags:
```
python
```
python
attr_names
=
d
.
get_attribute_list
()
attr_names
=
d
.
get_attribute_list
()
print
(
attr_names
)
print
(
attr_names
)
print
(
"
\r\n
Attributes:
"
)
print
(
"
\r\n
Attributes:
"
)
for
i
in
attr_names
:
for
i
in
attr_names
:
print
(
"
>>>
\t
"
,
i
)
print
(
"
>>>
\t
"
,
i
)
#exec("value = print(i, d.{})".format(i))
#exec("value = print(i, d.{})".format(i))
print
(
"
Missing Attributes:
\n
"
,
d
.
opcua_missing_attributes_R
)
print
(
"
Missing Attributes:
\n
"
,
d
.
opcua_missing_attributes_R
)
```
```
%% Output
%% Output
['version_R', 'opcua_missing_attributes_R', 'UNB2TR_translator_busy_R', 'UNB2_DC_DC_48V_12V_IOUT_R', 'UNB2_DC_DC_48V_12V_TEMP_R', 'UNB2_DC_DC_48V_12V_VIN_R', 'UNB2_DC_DC_48V_12V_VOUT_R', 'UNB2_EEPROM_Serial_Number_R', 'UNB2_EEPROM_Unique_ID_R', 'UNB2_FPGA_DDR4_SLOT_TEMP_R', 'UNB2_FPGA_POL_CORE_IOUT_R', 'UNB2_FPGA_POL_CORE_TEMP_R', 'UNB2_FPGA_POL_CORE_VOUT_R', 'UNB2_FPGA_POL_ERAM_IOUT_R', 'UNB2_FPGA_POL_ERAM_TEMP_R', 'UNB2_FPGA_POL_ERAM_VOUT_R', 'UNB2_FPGA_POL_HGXB_IOUT_R', 'UNB2_FPGA_POL_HGXB_TEMP_R', 'UNB2_FPGA_POL_HGXB_VOUT_R', 'UNB2_FPGA_POL_PGM_IOUT_R', 'UNB2_FPGA_POL_PGM_TEMP_R', 'UNB2_FPGA_POL_PGM_VOUT_R', 'UNB2_FPGA_POL_RXGXB_IOUT_R', 'UNB2_FPGA_POL_RXGXB_TEMP_R', 'UNB2_FPGA_POL_RXGXB_VOUT_R', 'UNB2_FPGA_POL_TXGXB_IOUT_R', 'UNB2_FPGA_POL_TXGXB_TEMP_R', 'UNB2_FPGA_POL_TXGXB_VOUT_R', 'UNB2_FPGA_QSFP_CAGE_LOS_R', 'UNB2_FPGA_QSFP_CAGE_TEMP_R', 'UNB2_Front_Panel_LED_R', 'UNB2_Front_Panel_LED_RW', 'UNB2_I2C_bus_DDR4_error_R', 'UNB2_I2C_bus_error_R', 'UNB2_I2C_bus_FPGA_PS_error_R', 'UNB2_I2C_bus_PS_error_R', 'UNB2_I2C_bus_QSFP_error_R', 'UNB2_mask_RW', 'UNB2_POL_CLOCK_IOUT_R', 'UNB2_POL_CLOCK_TEMP_R', 'UNB2_POL_CLOCK_VOUT_R', 'UNB2_POL_QSFP_N01_IOUT_R', 'UNB2_POL_QSFP_N01_TEMP_R', 'UNB2_POL_QSFP_N01_VOUT_R', 'UNB2_POL_QSFP_N23_IOUT_R', 'UNB2_POL_QSFP_N23_TEMP_R', 'UNB2_POL_QSFP_N23_VOUT_R', 'UNB2_POL_SWITCH_1V2_IOUT_R', 'UNB2_POL_SWITCH_1V2_TEMP_R', 'UNB2_POL_SWITCH_1V2_VOUT_R', 'UNB2_POL_SWITCH_PHY_IOUT_R', 'UNB2_POL_SWITCH_PHY_TEMP_R', 'UNB2_POL_SWITCH_PHY_VOUT_R', 'UNB2_PWR_off_R', 'UNB2_PWR_off_RW', 'State', 'Status']
['version_R', 'opcua_missing_attributes_R', 'UNB2TR_translator_busy_R', 'UNB2_DC_DC_48V_12V_IOUT_R', 'UNB2_DC_DC_48V_12V_TEMP_R', 'UNB2_DC_DC_48V_12V_VIN_R', 'UNB2_DC_DC_48V_12V_VOUT_R', 'UNB2_EEPROM_Serial_Number_R', 'UNB2_EEPROM_Unique_ID_R', 'UNB2_FPGA_DDR4_SLOT_TEMP_R', 'UNB2_FPGA_POL_CORE_IOUT_R', 'UNB2_FPGA_POL_CORE_TEMP_R', 'UNB2_FPGA_POL_CORE_VOUT_R', 'UNB2_FPGA_POL_ERAM_IOUT_R', 'UNB2_FPGA_POL_ERAM_TEMP_R', 'UNB2_FPGA_POL_ERAM_VOUT_R', 'UNB2_FPGA_POL_HGXB_IOUT_R', 'UNB2_FPGA_POL_HGXB_TEMP_R', 'UNB2_FPGA_POL_HGXB_VOUT_R', 'UNB2_FPGA_POL_PGM_IOUT_R', 'UNB2_FPGA_POL_PGM_TEMP_R', 'UNB2_FPGA_POL_PGM_VOUT_R', 'UNB2_FPGA_POL_RXGXB_IOUT_R', 'UNB2_FPGA_POL_RXGXB_TEMP_R', 'UNB2_FPGA_POL_RXGXB_VOUT_R', 'UNB2_FPGA_POL_TXGXB_IOUT_R', 'UNB2_FPGA_POL_TXGXB_TEMP_R', 'UNB2_FPGA_POL_TXGXB_VOUT_R', 'UNB2_FPGA_QSFP_CAGE_LOS_R', 'UNB2_FPGA_QSFP_CAGE_TEMP_R', 'UNB2_Front_Panel_LED_R', 'UNB2_Front_Panel_LED_RW', 'UNB2_I2C_bus_DDR4_error_R', 'UNB2_I2C_bus_error_R', 'UNB2_I2C_bus_FPGA_PS_error_R', 'UNB2_I2C_bus_PS_error_R', 'UNB2_I2C_bus_QSFP_error_R', 'UNB2_mask_RW', 'UNB2_POL_CLOCK_IOUT_R', 'UNB2_POL_CLOCK_TEMP_R', 'UNB2_POL_CLOCK_VOUT_R', 'UNB2_POL_QSFP_N01_IOUT_R', 'UNB2_POL_QSFP_N01_TEMP_R', 'UNB2_POL_QSFP_N01_VOUT_R', 'UNB2_POL_QSFP_N23_IOUT_R', 'UNB2_POL_QSFP_N23_TEMP_R', 'UNB2_POL_QSFP_N23_VOUT_R', 'UNB2_POL_SWITCH_1V2_IOUT_R', 'UNB2_POL_SWITCH_1V2_TEMP_R', 'UNB2_POL_SWITCH_1V2_VOUT_R', 'UNB2_POL_SWITCH_PHY_IOUT_R', 'UNB2_POL_SWITCH_PHY_TEMP_R', 'UNB2_POL_SWITCH_PHY_VOUT_R', 'UNB2_PWR_off_R', 'UNB2_PWR_off_RW', 'State', 'Status']
Attributes:
Attributes:
>>> version_R
>>> version_R
>>> opcua_missing_attributes_R
>>> opcua_missing_attributes_R
>>> UNB2TR_translator_busy_R
>>> UNB2TR_translator_busy_R
>>> UNB2_DC_DC_48V_12V_IOUT_R
>>> UNB2_DC_DC_48V_12V_IOUT_R
>>> UNB2_DC_DC_48V_12V_TEMP_R
>>> UNB2_DC_DC_48V_12V_TEMP_R
>>> UNB2_DC_DC_48V_12V_VIN_R
>>> UNB2_DC_DC_48V_12V_VIN_R
>>> UNB2_DC_DC_48V_12V_VOUT_R
>>> UNB2_DC_DC_48V_12V_VOUT_R
>>> UNB2_EEPROM_Serial_Number_R
>>> UNB2_EEPROM_Serial_Number_R
>>> UNB2_EEPROM_Unique_ID_R
>>> UNB2_EEPROM_Unique_ID_R
>>> UNB2_FPGA_DDR4_SLOT_TEMP_R
>>> UNB2_FPGA_DDR4_SLOT_TEMP_R
>>> UNB2_FPGA_POL_CORE_IOUT_R
>>> UNB2_FPGA_POL_CORE_IOUT_R
>>> UNB2_FPGA_POL_CORE_TEMP_R
>>> UNB2_FPGA_POL_CORE_TEMP_R
>>> UNB2_FPGA_POL_CORE_VOUT_R
>>> UNB2_FPGA_POL_CORE_VOUT_R
>>> UNB2_FPGA_POL_ERAM_IOUT_R
>>> UNB2_FPGA_POL_ERAM_IOUT_R
>>> UNB2_FPGA_POL_ERAM_TEMP_R
>>> UNB2_FPGA_POL_ERAM_TEMP_R
>>> UNB2_FPGA_POL_ERAM_VOUT_R
>>> UNB2_FPGA_POL_ERAM_VOUT_R
>>> UNB2_FPGA_POL_HGXB_IOUT_R
>>> UNB2_FPGA_POL_HGXB_IOUT_R
>>> UNB2_FPGA_POL_HGXB_TEMP_R
>>> UNB2_FPGA_POL_HGXB_TEMP_R
>>> UNB2_FPGA_POL_HGXB_VOUT_R
>>> UNB2_FPGA_POL_HGXB_VOUT_R
>>> UNB2_FPGA_POL_PGM_IOUT_R
>>> UNB2_FPGA_POL_PGM_IOUT_R
>>> UNB2_FPGA_POL_PGM_TEMP_R
>>> UNB2_FPGA_POL_PGM_TEMP_R
>>> UNB2_FPGA_POL_PGM_VOUT_R
>>> UNB2_FPGA_POL_PGM_VOUT_R
>>> UNB2_FPGA_POL_RXGXB_IOUT_R
>>> UNB2_FPGA_POL_RXGXB_IOUT_R
>>> UNB2_FPGA_POL_RXGXB_TEMP_R
>>> UNB2_FPGA_POL_RXGXB_TEMP_R
>>> UNB2_FPGA_POL_RXGXB_VOUT_R
>>> UNB2_FPGA_POL_RXGXB_VOUT_R
>>> UNB2_FPGA_POL_TXGXB_IOUT_R
>>> UNB2_FPGA_POL_TXGXB_IOUT_R
>>> UNB2_FPGA_POL_TXGXB_TEMP_R
>>> UNB2_FPGA_POL_TXGXB_TEMP_R
>>> UNB2_FPGA_POL_TXGXB_VOUT_R
>>> UNB2_FPGA_POL_TXGXB_VOUT_R
>>> UNB2_FPGA_QSFP_CAGE_LOS_R
>>> UNB2_FPGA_QSFP_CAGE_LOS_R
>>> UNB2_FPGA_QSFP_CAGE_TEMP_R
>>> UNB2_FPGA_QSFP_CAGE_TEMP_R
>>> UNB2_Front_Panel_LED_R
>>> UNB2_Front_Panel_LED_R
>>> UNB2_Front_Panel_LED_RW
>>> UNB2_Front_Panel_LED_RW
>>> UNB2_I2C_bus_DDR4_error_R
>>> UNB2_I2C_bus_DDR4_error_R
>>> UNB2_I2C_bus_error_R
>>> UNB2_I2C_bus_error_R
>>> UNB2_I2C_bus_FPGA_PS_error_R
>>> UNB2_I2C_bus_FPGA_PS_error_R
>>> UNB2_I2C_bus_PS_error_R
>>> UNB2_I2C_bus_PS_error_R
>>> UNB2_I2C_bus_QSFP_error_R
>>> UNB2_I2C_bus_QSFP_error_R
>>> UNB2_mask_RW
>>> UNB2_mask_RW
>>> UNB2_POL_CLOCK_IOUT_R
>>> UNB2_POL_CLOCK_IOUT_R
>>> UNB2_POL_CLOCK_TEMP_R
>>> UNB2_POL_CLOCK_TEMP_R
>>> UNB2_POL_CLOCK_VOUT_R
>>> UNB2_POL_CLOCK_VOUT_R
>>> UNB2_POL_QSFP_N01_IOUT_R
>>> UNB2_POL_QSFP_N01_IOUT_R
>>> UNB2_POL_QSFP_N01_TEMP_R
>>> UNB2_POL_QSFP_N01_TEMP_R
>>> UNB2_POL_QSFP_N01_VOUT_R
>>> UNB2_POL_QSFP_N01_VOUT_R
>>> UNB2_POL_QSFP_N23_IOUT_R
>>> UNB2_POL_QSFP_N23_IOUT_R
>>> UNB2_POL_QSFP_N23_TEMP_R
>>> UNB2_POL_QSFP_N23_TEMP_R
>>> UNB2_POL_QSFP_N23_VOUT_R
>>> UNB2_POL_QSFP_N23_VOUT_R
>>> UNB2_POL_SWITCH_1V2_IOUT_R
>>> UNB2_POL_SWITCH_1V2_IOUT_R
>>> UNB2_POL_SWITCH_1V2_TEMP_R
>>> UNB2_POL_SWITCH_1V2_TEMP_R
>>> UNB2_POL_SWITCH_1V2_VOUT_R
>>> UNB2_POL_SWITCH_1V2_VOUT_R
>>> UNB2_POL_SWITCH_PHY_IOUT_R
>>> UNB2_POL_SWITCH_PHY_IOUT_R
>>> UNB2_POL_SWITCH_PHY_TEMP_R
>>> UNB2_POL_SWITCH_PHY_TEMP_R
>>> UNB2_POL_SWITCH_PHY_VOUT_R
>>> UNB2_POL_SWITCH_PHY_VOUT_R
>>> UNB2_PWR_off_R
>>> UNB2_PWR_off_R
>>> UNB2_PWR_off_RW
>>> UNB2_PWR_off_RW
>>> State
>>> State
>>> Status
>>> Status
Missing Attributes:
Missing Attributes:
('2:UNB2TR_translator_busy_R', '2:UNB2_EEPROM_Serial_Number_R', '2:UNB2_I2C_bus_DDR4_error_R', '2:UNB2_I2C_bus_error_R', '2:UNB2_I2C_bus_FPGA_PS_error_R', '2:UNB2_I2C_bus_PS_error_R', '2:UNB2_I2C_bus_QSFP_error_R', '2:UNB2_PWR_off_R', '2:UNB2_PWR_off_RW')
('2:UNB2TR_translator_busy_R', '2:UNB2_EEPROM_Serial_Number_R', '2:UNB2_I2C_bus_DDR4_error_R', '2:UNB2_I2C_bus_error_R', '2:UNB2_I2C_bus_FPGA_PS_error_R', '2:UNB2_I2C_bus_PS_error_R', '2:UNB2_I2C_bus_QSFP_error_R', '2:UNB2_PWR_off_R', '2:UNB2_PWR_off_RW')
%% Cell type:code id:
sporting-current
tags:
%% Cell type:code id:
252e49de
tags:
```
python
```
python
d
.
RCU_mask_RW
=
[
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
d
.
UNB2_POL_QSFP_N23_TEMP_R
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,
False
,]
time
.
sleep
(
1
)
print
(
d
.
RCU_mask_RW
)
monitor_rate
=
d
.
RCU_monitor_rate_RW
print
(
"
current monitoring rate: {}, setting to {}
"
.
format
(
monitor_rate
,
monitor_rate
+
1
))
monitor_rate
=
monitor_rate
+
1
time
.
sleep
(
1
)
```
```
%% Output
%% Output
[False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
array([0., 0.])
---------------------------------------------------------------------------
ConnectionFailed Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py in __DeviceProxy__getattr(self, name)
326 try:
--> 327 self.__refresh_cmd_cache()
328 except Exception as e:
/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py in __DeviceProxy__refresh_cmd_cache(self)
241 def __DeviceProxy__refresh_cmd_cache(self):
--> 242 cmd_list = self.command_list_query()
243 cmd_cache = {}
ConnectionFailed: DevFailed[
DevError[
desc = Device lts/sst/1 is not exported (hint: try starting the device server)
origin = DeviceProxy::get_corba_name()
reason = API_DeviceNotExported
severity = ERR]
]
The above exception was the direct cause of the following exception:
AttributeError Traceback (most recent call last)
/tmp/ipykernel_22/1020840340.py in
<module>
5 print(d.RCU_mask_RW)
6
----> 7 monitor_rate = d.RCU_monitor_rate_RW
8 print("current monitoring rate: {}, setting to {}".format(monitor_rate, monitor_rate + 1))
9 monitor_rate = monitor_rate + 1
/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py in __DeviceProxy__getattr(self, name)
353 return self.read_pipe(name)
354
--> 355 six.raise_from(AttributeError(name), cause)
356
357
/usr/local/lib/python3.7/dist-packages/six.py in raise_from(value, from_value)
AttributeError: RCU_monitor_rate_RW
%% Cell type:code id:sharing-mechanics tags:
```
python
``
`
%%
Cell
type
:
code
id
:
ruled
-
tracy
tags
:
%% Cell type:code id:
d348a3c6
tags:
```
python
```
python
```
```
...
...
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