1 brookhaven science associates nslsii physics applications – applying v4 the control group –...

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

Upload: judith-blair

Post on 30-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

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

1 BROOKHAVEN SCIENCE ASSOCIATES

NSLSII Physics Applications – Applying V4

The Control Group – presented by Bob DalesioTaiwan EPICS Meeting, June 2011

October 11, 2010

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

2 BROOKHAVEN SCIENCE ASSOCIATES

Outline

• System Requirements• Subsystem Standards• Control System Architecture• Relational Database Tools - IRMIS• EPICS Extensions• Control System Studio (CSS) Tools• Conclusions

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

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

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

4 BROOKHAVEN SCIENCE ASSOCIATES

Client-Server Architecture for HLA

Distributed Front-Ends

Java or C++

Middle Layer Servers

Physical Device

Ethernet

PVAccessModel Server

CAC

Control System Studio

PVAccess / CAC

DiagnosticsCASPVA

Elegant/Tracy

PVAccessChannel

Finder Svr

SQL

RDB

PVAccess/CACMulti-Channel

Arrays Svr

Physical Device

Power SuppliesCASPVA

Physical Device

RFCASPVA

Physical Device

VacuumCASPVA

Physical Device

Utilities etc..,CASPVA

PVAccess/CACSave/Compare

Restore Svr

SQL

Python HLA Client

PVAccess

IRMIS

PVAccess

Lattice Server

SQL

IRMIS

PVAccess/CACMagnet Conv,

Response Matrix,

Dispersion, etc….

Serves orbit, magnets, any array of channels

Completed

Planned Development

Being Extended

LS2 Simulation

Diag & PSCASPVA

Matlab or Python

PVAccess / CAC

Matlab HLA Client

PVAccess

Early Development

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

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)

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

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

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

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

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

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

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

9 BROOKHAVEN SCIENCE ASSOCIATES

ChannelFinder Viewer

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

10 BROOKHAVEN SCIENCE ASSOCIATES

ChannelFinder – CSS Plugin

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

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

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

12 BROOKHAVEN SCIENCE ASSOCIATES

MultiChannelViewer

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

13 BROOKHAVEN SCIENCE ASSOCIATES

Developed Tools - Multi channel Viewer

Same set of channels Fig1. sorted by position Fig2. sorted by name

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

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

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

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.

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

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

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

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

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

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.