ISISComputingGroup / IBEX

Top level repository for IBEX stories
5 stars 2 forks source link

DETMON: Alias the IOC PVs to be easily readable #4186

Open KathrynBaker opened 5 years ago

KathrynBaker commented 5 years ago

As a person supporting detector systems at ISIS I'd like to easily see which crate the values relate to with a friendlier name than hv0

Acceptance criteria

  1. The PVs in the archive can be read as CAEN:INST:0:0:{PV} rather that CAEN:hv0:0:0:{PV}

Notes

  1. This may be achieved either through configuring the IOC, or through generating an alias file for use with the instrument archive as opposed to the blocks archive that allows the systems to use friendly names
  2. The first attempt should be to see if the IOC can be configured to use different names, and this should be timeboxed with enough time left at the end to create a suitable alias file if the IOC cannot be configured in a suitable fashion
  3. See Detmon for background information/more details if required
FreddieAkeroyd commented 5 years ago

The pv names are currently set by commands of the form

CAENx527ConfigureCreate "hv0", "ip.address"
CAENx527DbLoadRecords("P=$(MYPVPREFIX)CAEN")

in st.cmd so it should just be a matter of changing these. Could an instrument have more than one hv crate? In which case maybe we need to leave hv0, hv1 etc and just put the instrument name in the P macro

JamesKingWork commented 3 years ago

New driver uses in st.cmd:

$(IFIP0Present) CAENHVAsynSetEpicsPrefix("$(MYPVPREFIX)$(IOCNAME):HV0:")
$(IFIP0Present) CAENHVAsynConfig("HV0",$(SYS_TYPE_0),"$(IP_ADDRESS_0)"...

Maybe replace HV0, HV1 with a macro from config.xml