Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.66 KB

File metadata and controls

37 lines (26 loc) · 1.66 KB

CI Coverage PyPI License

epicsdbbuilder

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.

Source https://github.com/DiamondLightSource/epicsdbbuilder
PyPI pip install epicsdbbuilder
Docker docker run ghcr.io/diamondlightsource/epicsdbbuilder:latest
Documentation https://diamondlightsource.github.io/epicsdbbuilder
Releases https://github.com/DiamondLightSource/epicsdbbuilder/releases

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.