"\u001b[0;31mDevFailed\u001b[0m: DevFailed[\nDevError[\n desc = Read value for attribute FPGA_mask_RW has not been updated\n origin = Device_3Impl::read_attributes_no_except\n reason = API_AttrValueNotSet\nseverity = ERR]\n\nDevError[\n desc = Failed to read_attribute on device lts/sdp/1, attribute FPGA_mask_RW\n origin = DeviceProxy::read_attribute()\n reason = API_AttributeFailed\nseverity = ERR]\n]"
]
}
],
"source": [
"source": [
"values = [\n",
"values = [\n",
" [d.FPGA_mask_RW, \"FPGA_mask_RW\"],\n",
" [d.FPGA_mask_RW, \"FPGA_mask_RW\"],\n",
...
@@ -78,33 +106,201 @@
...
@@ -78,33 +106,201 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 5,
"execution_count": 9,
"id": "eligible-times",
"id": "7accae6a",
"metadata": {},
"outputs": [],
"source": [
"attr_names = d.get_attribute_list()\n",
"\n",
"\n",
"for i in attr_names:\n",
" exec(\"value = print(i, d.{})\".format(i))\n"
]
},
{
"cell_type": "code",
"execution_count": 19,
"id": "b88868c5",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"ename": "DevFailed",
"data": {
"evalue": "DevFailed[\nDevError[\n desc = TypeError: Expecting a numeric type, but it is not. If you use a numpy type instead of python core types, then it must exactly match (ex: numpy.int32 for PyTango.DevLong)\n \n origin = Traceback (most recent call last):\n File \"/usr/local/lib/python3.7/dist-packages/tango/server.py\", line 138, in read_attr\n set_complex_value(attr, ret)\n File \"/usr/local/lib/python3.7/dist-packages/tango/server.py\", line 115, in set_complex_value\n attr.set_value(value)\nTypeError: Expecting a numeric type, but it is not. If you use a numpy type instead of python core types, then it must exactly match (ex: numpy.int32 for PyTango.DevLong)\n\n reason = PyDs_PythonError\nseverity = ERR]\n\nDevError[\n desc = Failed to read_attribute on device lts/sdp/1, attribute TR_tod_R\n origin = DeviceProxy::read_attribute()\n reason = API_AttributeFailed\nseverity = ERR]\n]",
"\u001b[0;32m<ipython-input-5-e44d5c52394a>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0md\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mTR_tod_R\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mDevFailed\u001b[0m: DevFailed[\nDevError[\n desc = TypeError: Expecting a numeric type, but it is not. If you use a numpy type instead of python core types, then it must exactly match (ex: numpy.int32 for PyTango.DevLong)\n \n origin = Traceback (most recent call last):\n File \"/usr/local/lib/python3.7/dist-packages/tango/server.py\", line 138, in read_attr\n set_complex_value(attr, ret)\n File \"/usr/local/lib/python3.7/dist-packages/tango/server.py\", line 115, in set_complex_value\n attr.set_value(value)\nTypeError: Expecting a numeric type, but it is not. If you use a numpy type instead of python core types, then it must exactly match (ex: numpy.int32 for PyTango.DevLong)\n\n reason = PyDs_PythonError\nseverity = ERR]\n\nDevError[\n desc = Failed to read_attribute on device lts/sdp/1, attribute TR_tod_R\n origin = DeviceProxy::read_attribute()\n reason = API_AttributeFailed\nseverity = ERR]\n]"
desc = TypeError: Expecting a numeric type, but it is not. If you use a numpy type instead of python core types, then it must exactly match (ex: numpy.int32 for PyTango.DevLong)
desc = Read value for attribute FPGA_mask_RW has not been updated
origin = Device_3Impl::read_attributes_no_except
origin = Traceback (most recent call last):
reason = API_AttrValueNotSet
File "/usr/local/lib/python3.7/dist-packages/tango/server.py", line 138, in read_attr
set_complex_value(attr, ret)
File "/usr/local/lib/python3.7/dist-packages/tango/server.py", line 115, in set_complex_value
attr.set_value(value)
TypeError: Expecting a numeric type, but it is not. If you use a numpy type instead of python core types, then it must exactly match (ex: numpy.int32 for PyTango.DevLong)
reason = PyDs_PythonError
severity = ERR]
severity = ERR]
DevError[
DevError[
desc = Failed to read_attribute on device lts/sdp/1, attribute TR_tod_R
desc = Failed to read_attribute on device lts/sdp/1, attribute FPGA_mask_RW
origin = DeviceProxy::read_attribute()
origin = DeviceProxy::read_attribute()
reason = API_AttributeFailed
reason = API_AttributeFailed
severity = ERR]
severity = ERR]
]
]
%% Cell type:code id:7accae6a tags:
``` python
attr_names=d.get_attribute_list()
foriinattr_names:
exec("value = print(i, d.{})".format(i))
```
%% Cell type:code id:b88868c5 tags:
``` python
wgswitches=d.FPGA_wg_enable_R
print("Old values:\n",wgswitches)
wgswitches[9][0]=True
wgswitches[10][0]=True
print("Values to be set:\n",wgswitches)
d.FPGA_wg_enable_RW=wgswitches
time.sleep(7)
print("Values read back after setting:\n",d.FPGA_wg_enable_R)