Presentation is loading. Please wait.

Presentation is loading. Please wait.

Christian GerkeEPICS rdb Workshop 2005 March 9-111 EpicsOra building Epics-db-files from an Oracle Database Programmed by Anatoli Khvorostianov.

Similar presentations


Presentation on theme: "Christian GerkeEPICS rdb Workshop 2005 March 9-111 EpicsOra building Epics-db-files from an Oracle Database Programmed by Anatoli Khvorostianov."— Presentation transcript:

1 Christian GerkeEPICS rdb Workshop 2005 March 9-111 EpicsOra building Epics-db-files from an Oracle Database Programmed by Anatoli Khvorostianov

2 Christian GerkeEPICS rdb Workshop 2005 March 9-112 Basic Idea Use database instead of flat files make it master of all info –Import dbd-files (define EPICS-version) –Export db-files to be loaded to IOCs –Modify here / re-import modified db-files Define “objects” –Structure: group of records –Structure: can be nested (complex objects) –Parameters –Inheritance

3 Christian GerkeEPICS rdb Workshop 2005 March 9-113 Further ideas Link different fields of interest –Epics –Hardware devices (also asset management) –“registry” for graphics, alarming –etc. Use “io_name” as link –Name of sensor/actor in drawings –Name of sensor/actor in graphics –Associated to cable/wires in cabling –…

4 Christian GerkeEPICS rdb Workshop 2005 March 9-114 EPICS and rdb at DESY

5 Christian GerkeEPICS rdb Workshop 2005 March 9-115 dbd files → epicsOra → db file

6 Christian GerkeEPICS rdb Workshop 2005 March 9-116 Prototypes: inheritance for record-fields

7 Christian GerkeEPICS rdb Workshop 2005 March 9-117 Record Fields Can be modified at all levels Inherit values from higher level Can use parameters in prototypes e.g. $(desc), $(egu) Can use functions in prototypes e.g. $CONT(record.field), $LINK(record), $ROUND(0.9*$(eguhi)), $IONAME(io_name)

8 Christian GerkeEPICS rdb Workshop 2005 March 9-118 Link to hardware Fields: INP, OUT,… Development Assign address string at instance level Calculate address string from variables Take address string from special table Calculate address string and DTYP from device- /asset-tables

9 Christian GerkeEPICS rdb Workshop 2005 March 9-119 Structure Re-usable Nested Link records Inherit field values Name rules Copy structure –New object –New epics version

10 Christian GerkeEPICS rdb Workshop 2005 March 9-1110 Hierarchy in EpicsOra dbd Base prototypes add structure Fields inherit values Define parameters Composite prototypes Assign values Composite Instances Instances db file

11 Christian GerkeEPICS rdb Workshop 2005 March 9-1111 Inside EpicsOra (Oracle AS 10g, Forms 9)

12 Christian GerkeEPICS rdb Workshop 2005 March 9-1112 Inside EpicsOra: project

13 Christian GerkeEPICS rdb Workshop 2005 March 9-1113 Inside EpicsOra base prototype

14 Christian GerkeEPICS rdb Workshop 2005 March 9-1114 Inside EpicsOra record of base prototype

15 Christian GerkeEPICS rdb Workshop 2005 March 9-1115 Inside EpicsOra composite prototype

16 Christian GerkeEPICS rdb Workshop 2005 March 9-1116 Inside EpicsOra record in composite prototype

17 Christian GerkeEPICS rdb Workshop 2005 March 9-1117 Inside EpicsOra instance of composite prototype

18 Christian GerkeEPICS rdb Workshop 2005 March 9-1118 Inside EpicsOra instance of base prototype

19 Christian GerkeEPICS rdb Workshop 2005 March 9-1119 Inside EpicsOra instance of record


Download ppt "Christian GerkeEPICS rdb Workshop 2005 March 9-111 EpicsOra building Epics-db-files from an Oracle Database Programmed by Anatoli Khvorostianov."

Similar presentations


Ads by Google