Skip to content
Snippets Groups Projects
  1. Jan 13, 2025
    • Marco Filho's avatar
      Fix missing callbacks. Initialize waveforms. · b5df5c06
      Marco Filho authored
      asyn READBACK tag allows for waveform record to be updated whenever the
      callback is called in code.
      
      Without this, OPIs usually can't properly put or get to uninitialized
      waveform records.
      b5df5c06
  2. Jan 03, 2025
    • Marco Filho's avatar
      Add missing PINI · 1a04afb6
      Marco Filho authored
      1a04afb6
    • Marco Filho's avatar
      MAJOR REFACTOR · 9fcb1f57
      Marco Filho authored
      This commit was done with an inescrupulous "git add ." after several
      radical modifications.
      
      Anyway, the API was radically modified and basically the old way the
      code worked does not make any sense anymore.
      
      The desired architecture is the following: the API is going to be used
      as a class component. Each parameter will be created according to the
      desired number of enabled hybrids.
      
      Each parameter should use one simple API function. No information about
      the VMM or hybrids itself is stored in the VMMTbl class unless extremely
      needed.
      
      This commit leaves a few old parameters that should be removed in the
      future such as ADC_VALUE_VMM1, READ_ADC_VMMS, etc. This is only to serve
      as a reminder to add those later.
      9fcb1f57
  3. Jul 16, 2024
    • Marco Filho's avatar
      Adapt record names to fir naming pattern · 8b038174
      Marco Filho authored
      Now, for VMM, the pattern is:
      $(R)$(H)$(V)$(C)$(CH)
      
      R: Usually "NDet-VMMHYB-00". No colon after.
      H: Hybrid number in range 0-5
      V: VMM chip number in range 0-1
      C: Colon Between device name and property Should be ":" but is a macro in case anyone
         decides that shouldn't be there anymore.
      CH: Channel/register being set. Can be ST, SL, SC, STH, SM or SMX
      
      Also, to make naming more visible and dynamic, stop using substitutions file.
      8b038174
  4. Jul 15, 2024
    • Marco Filho's avatar
      Make register name dynamic · 4d3389a8
      Marco Filho authored
      ST register is not hardcoded into template file anymore.
      This will make it easier to add new registers, I hope.
      4d3389a8
    • Marco Filho's avatar
      Style: remove excessive comment symbols · f724db59
      Marco Filho authored
      f724db59
    • Marco Filho's avatar
      Make register ST channel set for correct Hybrid/VMM pair. · d408299e
      Marco Filho authored
      Before this, Any caput to AllST-S record would only set channels values to
      hybrid 0, vmm 0 because of hardcoded values.
      
      This commit makes the vmmST_ an array with epics parameters.
      The function getPair discovers the HYBRID-VMM pair for the parameter
      that was called and sets the correct pair register's values.
      
      Also, records are loaded with .sub files so we don't need to keep repeating
      record names with different numbers.
      
      All have been tested and works.
      d408299e
Loading