Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 BROOKHAVEN SCIENCE ASSOCIATES NSLSII Physics Applications – Applying V4 The Control Group – presented by Bob Dalesio Taiwan EPICS Meeting, June 2011.

Similar presentations


Presentation on theme: "1 BROOKHAVEN SCIENCE ASSOCIATES NSLSII Physics Applications – Applying V4 The Control Group – presented by Bob Dalesio Taiwan EPICS Meeting, June 2011."— Presentation transcript:

1 1 BROOKHAVEN SCIENCE ASSOCIATES NSLSII Physics Applications – Applying V4 The Control Group – presented by Bob Dalesio Taiwan EPICS Meeting, June 2011 October 11, 2010

2 2 BROOKHAVEN SCIENCE ASSOCIATES Outline System Requirements Subsystem Standards Control System Architecture Relational Database Tools - IRMIS EPICS Extensions Control System Studio (CSS) Tools Conclusions

3 3 BROOKHAVEN SCIENCE ASSOCIATES EPICS V3 A narrow interface supports reusable clients DBR_ types included: –Double, long integer, enumerated, string –Metadata: time stamp, alarm severity, display and control Only monitored value, time stamp alarm severity This narrow interface supported signals well It is not easily extendible nor is it complete enough

4 4 BROOKHAVEN SCIENCE ASSOCIATES Client-Server Architecture for HLA Distributed Front-Ends Java or C++ Middle Layer Servers Physical Device Ethernet PVAccess Model Server CAC Control System Studio PVAccess / CAC Diagnostics CAS PVA Elegant/Tracy PVAccess Channel Finder Svr SQL RDB PVAccess/CAC Multi-Channel Arrays Svr Physical Device Power Supplies CAS PVA Physical Device RF CAS PVA Physical Device Vacuum CAS PVA Physical Device Utilities etc.., CAS PVA PVAccess/CAC Save/Compare Restore Svr SQL Python HLA Client PVAccess IRMIS PVAccess Lattice Server SQL IRMIS PVAccess/CAC Magnet Conv, Response Matrix, Dispersion, etc…. Serves orbit, magnets, any array of channels Completed Planned Development Being Extended LS2 Simulation Diag & PS CAS PVA Matlab or Python PVAccess / CAC Matlab HLA Client PVAccess Early Development

5 5 BROOKHAVEN SCIENCE ASSOCIATES Extend DBR_TYPES in EPICS V4 Easily extendible thanks to work done by Marty Kraimer and Matej Sekorania Can monitor metadata too – Only send structure elements that have changed New data types: Extend the DBR_TYPES to higher level applications Extra metadata needed to complete description of type Heavy basis on Aida (Greg White – SLAC), in discussion with NSLS II team from controls and phsyics, Timo Korhonen (PSI), and James Rowland (Diamond)

6 6 BROOKHAVEN SCIENCE ASSOCIATES New DBR_TYPES in EPICS V4 New DBR Types PV List: list of PV names and relative order Multi-Channel Array: synchronous array of PV List Image: image with information to allow actions Multi-dimensional arrays: 1 to N of same type Statistics: high, low, median, average, standard deviation, start time, end time, number of samples Provide CSS Plugs for Each Type Support Archive/Archive Retrieval for Each Type Extend Database Records to Use These Types

7 7 BROOKHAVEN SCIENCE ASSOCIATES PV List Applications do not need knowledge of specific PVs Populate Directory Service from IRMIS and IOC @ boot. Search for a list of process variables by attributes: X position in storage ring Motor position in primary mirror Temperature in LINAC Return list with an ordinal

8 8 BROOKHAVEN SCIENCE ASSOCIATES ChannelFinder Viewer  CSS  Display  ChannelFinderViewer  Searching Name, Property value, Tags Regular Expressions using “*”, “?” prop=val1, val2 is equivalent to prop=val1 OR prop=val2 prop=val1 tag=myTag is equivalent to prop=val1 AND tag=myTag

9 9 BROOKHAVEN SCIENCE ASSOCIATES ChannelFinder Viewer

10 10 BROOKHAVEN SCIENCE ASSOCIATES ChannelFinder – CSS Plugin

11 11 BROOKHAVEN SCIENCE ASSOCIATES Multi-Channel Array Send a PV List Return an array of PV, time stamp, alarm severity, as an ordered list Can specify how close in time for synchronization. Standard applications in CSS exist for viewing Plotting Histograms Table

12 12 BROOKHAVEN SCIENCE ASSOCIATES MultiChannelViewer

13 13 BROOKHAVEN SCIENCE ASSOCIATES Developed Tools - Multi channel Viewer  Same set of channels  Fig1. sorted by position  Fig2. sorted by name

14 14 BROOKHAVEN SCIENCE ASSOCIATES User Slide - HLA on Channel Finder Service They talk about PV/IOC, we talk about element/cell/girder PVs are associated with properties and tags, which are used to construct a lattice familiar to physicist. “the BPM readings in cell 10 girder 2” is easier than PV name

15 15 BROOKHAVEN SCIENCE ASSOCIATES User Slide - HLA Use Cases HLA uses several thousand PVs. Each have properties like “elementname”, “elementtype”, “cell”, “girder”, “s_position”, … Some PVs are tagged with “ HLA.X ”, “ HLA.EGET ”, “ HLA.EPUT ” which means that PV is a “horizontal reading/setting”, “default reading” and “default setting” The lattice object is a list of elements, each owns several PVs. All of the data is initialized from channel finder service: pv, properties and tags. No need to remember PV when writing a normal script.

16 16 BROOKHAVEN SCIENCE ASSOCIATES Image Attributes (largely from areaDetector – Mark Rivers) Image size Image representation: RGB etc.. Pixel resolution Image dimensions Time stamp Create an image record and image calculation record Incorporate the type into AreaDetector

17 17 BROOKHAVEN SCIENCE ASSOCIATES Statistics Support in records types similar to circular buffer Support archive of this type Use this type for archive retrieval Use this data type to collect information from BPM raw data and 10 KHz data

18 18 BROOKHAVEN SCIENCE ASSOCIATES Conclusions Version 3 has provided adequate support for signal data for many years with a wide variety of clients developed against the interface. The need to extend the support for more complex data has been clear for near as many years. The approach to take use cases to extend the data types seems to be appropriate to find a minimum set of new data types that provide a wide range of functionality. The active engagement of many in our community to help define this set has been productive for physics applications. The services provided have been well received by the first few users. A tram of physicists and programmers at several labs are now focused on this effort with approaching deadlines A lot more work is needed.


Download ppt "1 BROOKHAVEN SCIENCE ASSOCIATES NSLSII Physics Applications – Applying V4 The Control Group – presented by Bob Dalesio Taiwan EPICS Meeting, June 2011."

Similar presentations


Ads by Google