You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the IOC with a real panda, there is an error in _tables.py upon trying to update any of the waveform table PV's, eg PGEN1:TABLE:POSITION.
The IOC client gives the logging warning and error: INFO:Sending table data for PGEN1:TABLE to PandA WARNING:Index 0 of record PGEN1:TABLE:POSITION is out of bounds. Traceback (most recent call last): File "/dls_sw/work/common/python/p45-ophyd-venv/lib/python3.9/site-packages/pandablocks_ioc/_tables.py", line 700, in _update_scalar scalar_val = waveform_data[index] IndexError: index 0 is out of bounds for axis 0 with size 0
It could be that the code currently doesn't allow for 0 waveforms, which is the initial setting.
To reproduce:
Locally run the ioc from /dls_sw/work/common/python/p45-ophyd-venv/lib/python3.9/site-packages/pandablocks_ioc and connect to a real panda
Use a branch of ophyd-epics-devices which can connect to the PandA (eg save_load_changing_all_values), as right now the main branch can't connect.
Write a simple test to try and update the value to one of these PV's. Eg:
This is likely an issue with the max_length parameter coming back from PandA. The waveform record is initialized with length=field_info.max_lengthhere. This means the waveform record should be being created empty, but with some maximum size and therefore should allow the later adding of data.
This can be checked by using PandA-Client to get all the info for the Field, and seeing what data appears in the FieldInfo structure.
Using the IOC with a real panda, there is an error in
_tables.py
upon trying to update any of the waveform table PV's, egPGEN1:TABLE:POSITION
.The IOC client gives the logging warning and error:
INFO:Sending table data for PGEN1:TABLE to PandA WARNING:Index 0 of record PGEN1:TABLE:POSITION is out of bounds. Traceback (most recent call last): File "/dls_sw/work/common/python/p45-ophyd-venv/lib/python3.9/site-packages/pandablocks_ioc/_tables.py", line 700, in _update_scalar scalar_val = waveform_data[index] IndexError: index 0 is out of bounds for axis 0 with size 0
It could be that the code currently doesn't allow for 0 waveforms, which is the initial setting.
To reproduce:
caput also doesn't work, although no helpful error is outputted from this
The text was updated successfully, but these errors were encountered: