Skip to content

KIT-IBPT/epicsdbbuilder

 
 

Repository files navigation

EPICS Database Builder

Code CI Docs CI Test Coverage Latest PyPI version Apache License

This Python module is designed to make it easy to build complex EPICS databases by writing a Python script. While writing record templates the corresponding dbd entries are checked to reduce the number of errors in the database.

PyPI pip install epicsdbbuilder
Source code https://github.com/DiamondLightSource/epicsdbbuilder
Documentation https://DiamondLightSource.github.io/epicsdbbuilder

A simple example of the use of this library is the following:

from epicsdbbuilder import *
InitialiseDbd('/dls_sw/epics/R3.14.12.3/base/')
SetTemplateRecordNames()

a = records.ao('TEST')
c = records.calc('CALC', CALC = 'A+B', SCAN = '1 second', INPA = a.VAL)
c.INPB = c

WriteRecords('output.db')

See https://DiamondLightSource.github.io/epicsdbbuilder for more detailed documentation.

Packages

No packages published

Languages

  • Python 98.5%
  • Makefile 1.5%