diff --git a/src/pandablocks_ioc/_pvi.py b/src/pandablocks_ioc/_pvi.py index 314e6121..a9665a84 100644 --- a/src/pandablocks_ioc/_pvi.py +++ b/src/pandablocks_ioc/_pvi.py @@ -206,7 +206,7 @@ def add_positions_table_row( SignalRW( name=epics_to_pvi_name(units_record_name), label=units_record_name, - write_pv=f"{Pvi.record_prefix}:{value_record_name}", + write_pv=f"{Pvi.record_prefix}:{units_record_name}", write_widget=TextWrite(), ), SignalRW( diff --git a/src/pandablocks_ioc/ioc.py b/src/pandablocks_ioc/ioc.py index 25df812f..208a53a6 100644 --- a/src/pandablocks_ioc/ioc.py +++ b/src/pandablocks_ioc/ioc.py @@ -923,6 +923,7 @@ def dataset_record_on_update(new_dataset_name): INPB=builder.CP(record_dict[scale_record_name].record), INPC=builder.CP(record_dict[offset_record_name].record), DESC="Value with scaling applied", + PREC=5, ) # Create the POSITIONS "table" of records. Most are aliases of the records