Top Banner
ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008
18
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

ACNET to EPICSMeeting

SNS Device DB Tools

J. Patrick

November 4, 2008

Page 2: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

SNS Device Tables

Names are SYST_SUBSYS:DVC_TYPE(X):SGNL(_Y) Example: SCL_LLRF:Cav1:ADC_5

(Superconducting linac/LLRF/Cavity 1/ADC 5) X (device type instance) and Y (signal instance) optional

Part up to “SGNL” is a “Device” Each device type has a set of signals associated with it

Serves to group together related signals beyond what EPICS supports by default

Very useful in creating new devices – get query for all associated signals

“Signal” basically corresponds to an EPICS record

2

Page 3: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

“JERI”

Java EPICS Relational database Interface http://snsapp1.sns.ornl.gov/controls/jeri/JERIInstructionalDocument1.pdf

GUI tool to view and manipulate device database Import from dbd/db files referenced by startup scripts Holds information not in db files (archiving information…) View and edit information Export db files Reports Deals with a lot of other information – cabling, equipment

tracking, MPS configuration, … Large overlap with IRMIS

Allows modification of data and re-export Links together additional information beyond what is in db files

3

Page 4: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Future trends

Brookhaven enhancing IRMIS, plan to put most control system information in it including machine configuration

SNS moving in different direction Control System Studio View database information along with live data

4

Page 5: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Demo

JERI code can be downloaded from SNS However no access to SNS device database Reversed engineered partial schema from queries in the

code Created MySQL database with this schema Some JERI code changes required in db queries

MySQL more case sensitive Oracle supports more terse outer join syntax

Some basic things work, but a lot doesn’t… Demonstrate loading LLRF db files

~1200 signals

5

Page 6: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Device Tables

SYST – Name/description of valid systems SUBSYS – Name/description of valid subsystems DVC_TYPE – Name/description of valid device types DVC – Device

6

Page 7: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

SNS Device Tables cont.

SGNL_FLD_MENU – describes menus SGNL_FLD_DEF – defines field types SGNL_REC - Signal Record

Effectively a record

SGNL_FLD – Signal Field Effectively a PV – field within a record

7

Page 8: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

IOC tables

IOC_DVC – IOC information like node name, IP address, etc. etc.

IOC_DB_FILE_ASGN – device/db file correlation IOC_DB_FILE_ASGN_SGNL – signal/db file correlation

8

Page 9: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Import LLRF db files from boot script

February 26, 2008 9

Page 10: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Imported information from db files

February 26, 2008 10

Page 11: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

PV view after adding to database

11

Field columns should be filled in but aren’t presumably due to bugs in port…

Page 12: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Signal view

12

Note additional information – Machine Protection indicator, invalid ID indicator,last modifier, also alarmable indicator, archiver information beyond edge…Columns may be edited and modified information committed to the database

Page 13: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Filter

13

Can filter the signals shown by either the above windowor one that aids in constructing an SQL query

Page 14: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Device Generator Wizard

14Gives series of menus with valid system, subsystem…

Page 15: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Device Type selection

15

Page 16: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Select starting instance # and count

16

Page 17: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Add associated signals

17

This would presumably allow one to configure the signals associated withthe selected device type, but I didn’t get it to work so far…It also supports templates

Page 18: ACNET to EPICS Meeting SNS Device DB Tools J. Patrick November 4, 2008.

Summary

This talk attempted to give some idea of how SNS captures EPICS device information in a central database

It captures information from db files by picking through startup scripts

It defines a higher level “device” construct which is a collection of related signals (EPICS records)

It stores other related information like MPS configuration, archiver, etc. coupled with the db file information

It has a GUI tool that allows one to browse and edit the database and re-export db files

There is some commonality with IRMIS. SNS and Brookhaven appear to be taking divergent future paths

I believe it is important to provide a tool like this here18