cotrol heet cosylab’s newsletter · miha vitorovič is a senior software developer at co-sylab....

9
Control Sheet Cosylab’s Newsletter Volume 19 ISSN: 1855-9255 Cosylab d.d., Teslova ulica 30, SI-1000 Ljubljana, SLOVENIA Phone: +386 1 477 66 76 Email: [email protected] URL: www.cosylab.com June 2014 Table of Contents 2 A Turnkey Control System for ELI-NP Cosylab as a part of the EuroGammaS consortium wins the tender to build and deliver world’s most powerful gamma beam facility. 4 Reusing Expertise: A Control System for Solaris The first Polish synchrotron radiation facility Solaris is being built at the Jagi- ellonian University Campus in Kraków and Cosylab is selected to realize the control system. 7 GUI Style Guides: Haute Couture Window Dressing? Some GUI makeover tips! 5 FECOS: Front End Controller Operating System An overview of this framework used by MedAustron. State Machine Component Self Initializing Component Service Executive 9 The Picture Board

Upload: phungnhi

Post on 31-Jul-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Control Sheet Cosylab’s Newsletter

Volume 19 ISSN: 1855-9255

Cosylab d.d., Teslova ulica 30, SI-1000 Ljubljana, SLOVENIAPhone: +386 1 477 66 76 Email: [email protected] URL: www.cosylab.com

June 2014Table of Contents

2 A Turnkey Control System for ELI-NPCosylab as a part of the EuroGammaS consortium wins the tender to build and deliver world’s most powerful gamma beam facility.

4Reusing Expertise: A Control System for SolarisThe first Polish synchrotron radiation facility Solaris is being built at the Jagi-ellonian University Campus in Kraków and Cosylab is selected to realize the control system.

7 GUI Style Guides: Haute Couture Window Dressing?Some GUI makeover tips!

5 FECOS: Front End Controller Operating SystemAn overview of this framework used by MedAustron.

State Machine Component Self Initializing Component

Service

Executive

9 The Picture Board

Volume 19 Control Sheet ISSN: 1855-9255

2page:

The Extreme Light Infrastructure (ELI) [1] currently consists of four projects that will provide a great platform for the study of the fundamental processes that unfold during light-matter interactions. The three facilities currently on the way are ELI-Beamlines near Prague, Czech Republic, ELI-ALPS (Attosecond Light Pulse Source) in Szeged, Hungary and ELI-NP (Nuclear Physics) in Magurele, Romania. The site of the fourth project (ELI-Ultra High Field) is still to be decided.

By : Gašper Pajor (Cosylab)

A Turnkey Control System for ELI-NP

Cosylab as a part of the EuroGammaS consortium wins the tender to build and deliver world’s most powerful gamma beam facility.

ELI-NP [2, 3] will consist of two large ma-chines, namely:

◊ A very intense (1013 γ/s) gamma source with a brilliant γ beam, a 0.1% bandwidth and with Ev > 19 MeV. This is obtained by incoherent Comp-ton back scattering of laser light off a very brilliant, intense, classical electron beam (Ee > 700 MeV) produced by a warm linac.

◊ A very high intensity laser, where

Figure 1: Artist’s impression of the ELI-NP facility that is being built in Magurele, Romania. [3, 4]

beams from two 10 PW lasers are co-herently added to get intensities of the order of 1023 - 1024 W/cm2 and elec-trical fields of 1015 V/m.

Once built, the ELI-NP will be the most ad-vanced laser and gamma beam facility in the world.

The gamma source machine will be de-livered by the EuroGammaS consortium which is headed by the Italian Institute of Nuclear Physics (INFN). Institutes and

Volume 19 Control Sheet ISSN: 1855-9255

3page:

REFERENCES

Gašper Pajor is a Group Leader at Cosylab, joining in 2001. He has a background in physics, with extensive experience in project management of control system projects. Currently, he is the project leader for the ELI-NP turnkey control system, that is responsible for delivery of the overall control system for this project. In his free time, Gašper enjoys spending time with his family in his house in the countryside they just moved into.

companies from all across Europe are par-ticipating in this consortium and Cosylab assumed responsibility for delivery of the overall control system.

In a complex system like the ELI-NP, a unique control system will manage the whole machine, from the gun to the ra-diation beam-lines. This means that the control system must be able to execute commands on all the active elements and control all the diagnostic devices, giving the needed information to the accelerator operators. Furthermore, it must be easy to upgrade the system - substituting old ele-ments or introducing new ones.

The EPICS framework was chosen for the ELI-NP control system. The implementa-tion will be based on a modular control system design that leverages solutions

ABOUT THE AUTHOR

[1] http://www.eli-laser.eu/

[2] http://www.stfc.ac.uk/3122.aspx

[3] http://www.eli-np.ro/

[4] http://www.eli-np.ro/civil-construc-tion/construction_photos.php

developed at other similar facilities. This along with a set of strict processes and conventions ensures that any custom, ELI-NP-specific development will be done in a standardized and coherent manner.

Along with the whole set of technical challenges, the ELI-NP also faces two mu-tually amplifying risks; the timeline is very tight, as the first stage of installation and commissioning is due in 18 months and at the same time the stakeholders are geo-graphically dispersed across 8 European countries. The control system is heavily exposed to both of these risks; we will in-terface with practically all other systems and most, if not all, of the control system will already be needed to be up and run-ning in the commissioning phase. It will definitely be a challenge for the Cosylab ELI-NP team!

Figure 2: Representatives of the EuroGammaS Consortium on 19 March 2014 in Rome, Italy, after the signing of the contract to implement the Gamma Beam System within the ELI-NP project.

Volume 19 Control Sheet ISSN: 1855-9255

4page:

By : Frank Amand (Cosylab)

Reusing Expertise: A Control System for SolarisThe first Polish synchrotron radiation facility Solaris is being built at the Jagiellonian University Campus in Kraków and Cosylab is selected to realize the control system.

More than a decade ago, Polish synchro-tron radiation users formulated the ambi-tion of a Polish national light source facility. Together with 35 research institutes and universities, they founded the Polish Syn-chrotron Consortium. The project, named Solaris [1], received financing from the Eu-ropean Structural Funds, and is being con-structed as we speak, with first research planned for 2015.

Specific to this project is a strong partner-ship with the MAX-IV project [2] in Lund, Sweden. The design of the synchrotron ring aims at maximizing reuse of the de-sign of the 1.5 GeV storage ring of MAX-IV. This has repercussions on the design of the control system: it is based on the TANGO control system [3], chosen by MAX-IV. Re-use of Tango Device Servers, developed for use at MAX-IV is envisioned and is a major assumption of the control system integra-tion project. If successful, it will strengthen

the cause of international, multi-site, open-source collaborations, such as TANGO con-trols.

The novelties in storage ring technologies, such as a single iron block design for the DBA’s and NEG coated vacuum system are illustrated here [1] as well as the typical beam parameters.

Cosylab has been selected for the de-livery of the control system integration services, including delivery of the timing system hardware. With this choice the So-laris team has opted not to reinvent the wheel on control system integration, just as they chose not to reinvent the storage ring design. Instead they leverage timing system expertise built-up with projects like the MedAustron medical accelerator [4] in Austria. Similarly control system integration expertise for rings and beamlines, e.g. the booster synchrotron of the Australian Syn-chrotron [5] and a Turnkey Control System

Figure 1: Artist’s impression of the Solaris facility being built at the Jagiellonian University Campus in Kraków, Poland. [1]

[1] http://www.synchrotron.uj.edu.pl/en_GB/

[2] https://www.maxlab.lu.se/maxiv

[3] http://www.tango-controls.org/

[4] http://www.medaustron.at/en/

[5] http://www.synchrotron.org.au/

[6] http://www.kcsr.kiae.ru/en/

REFERENCES

ABOUT THE AUTHOR

Frank Amand, Belgian, joined Cosylab in 2011. Previ-ous work experience includes 12 years with Royal Philips in Belgium and the Netherlands in a variety of software engineering related roles. His technical expertise lays in the domain of human-computer interaction, GUI design and usability. He is currently Cosylab’s Head of Marketing.

for the PHASE Beamline at the Kurchatov Centre for Synchrotron Radiation [6] in Rus-sia.

Volume 19 Control Sheet ISSN: 1855-9255

5page:

What is FECOS?FECOS is a light-weight, purpose-built, pro-gramming framework that allows users of the MedAustron control system to write control code for the accelerator front end controllers (FECs). One of the key purposes of FECOS is the standardization of FEC inter-faces and partially behavior, e.g. FECOS en-forces a state machine that is implemented by every FEC. FECOS also provides standard functionality like error reporting, logging, timing system support and watchdog and host health-status monitoring, providing a mechanism for configuration, control and supervision. FECOS runs on all FECs and each FEC is able to run multiple applica-tions (application components) [2-4].

By : Samo Tuma (Cosylab), Miha Vitorovič (Cosylab), Matej Klun (Cosylab) and Mathias Eichinger (MedAustron)

FECOS: Front End Controller Operating System

MedAustron (Wiener Neustadt, Austria) is one of the most advanced facili-ties for ion beam therapy and research in Europe. It is a synchrotron based accelerator complex that will provide cancer treatment and will also be used for medical and non-medical physics research. Installation and commission-ing of the particle accelerator is already well under way and the first patient treatment is planned for 2015.

Cosylab has been in close collaboration with MedAustron since 2010 and has contributed a considerable amount of development on the MedAustron accel-erator core control system [1], including the Front End Controller Operating System (FECOS).

FECOS and all device-support software are implemented through object-oriented programming in LabVIEW, also known as LVOOP. This approach established a stream-lined development process with MedAus-tron developers [3].

How does FECOS work?All communication is event based and FE-COS itself is state machine based. Figure 1 shows the FECOS class hierarchy.

All device control is implemented by ex-tending a Component class. Each Compo-nent within the framework is provided with a pair of queues that are used for asynchro-nous inbound and outbound communi-cation. Executive is the main dedicated

component that tracks and manages the “user applications”, i.e. components that are statically bound to the framework. It also takes care of communication – grabs components outgoing messages and dis-patches them to the appropriate target components.

How is communication handled?FECOS was originally conceived to stan-dardize operation and communication of the front end controllers. The frame-work implements a few communication

Figure 1: FECOS Class Hierarchy [4]

State Machine Component Self Initializing Component

Service

Executive

Volume 19 Control Sheet ISSN: 1855-9255

6page:

REFERENCES

Samo Tuma joined Cosylab in October 2012 as a soft-ware engineer, then spent most of his time working on the MedAustron project. His current role is that of a se-nior software/hardware engineer, interested in a good game of basketball or a bite into a chilly pepper!

Matej Klun joined Cosylab in February 2011 as a soft-ware/hardware engineer. Currently he is in the role of a senior systems architect, but when there is time left he enjoys a pint of his own home-made beer.

Mathias Eichinger joined MedAustron in November 2012 as a Control System Expert. He is currently man-aging the extension and maintenance of the front end controller software developed in LabVIEW.

Miha Vitorovič is a Senior Software Developer at Co-sylab. He has a background in Computer Science and is currently Project Manager for the Data Management system for ESS, that is responsible for delivery of the Ma-chine configuration, naming, cabling and lattice appli-cations. In his free time, Miha enjoys spending time with his family, hiking and enjoying the mountains.

protocols (for example, HTTP and MAPS (MedAustron Publisher-Subscriber)) [3].

The application components that run on the FECs are not concerned with the de-tails of the different communication pro-tocols. These are handled by communica-tion protocol wrappers, which are exposed to the developer and provide a layer of abstraction to the actual interface. Each component within the framework is pro-vided with a pair of queues that are used for asynchronous inbound and outbound communication via messages. Messages are called events and each event has a type or meaning and carries additional informa-tion that the receiver of the event can use to perform its tasks. The framework handles inbound and outbound communication asynchronously to the application compo-nents.

Each application component implements a general purpose state machine for uniform control procedures. The framework always contains a dedicated application compo-nent, the “executive” that tracks and man-ages the “user applications” that are stati-cally bound to the framework. [3]

A user relies on a set of FECOS libraries which contain LabVIEW VIs (virtual instru-ments) and data structures to develop ap-plications. [3]

While upstream communication to the processing tier and other peers at the same tier is transparently handled by the frame-work, direct access to hardware and soft-ware elements is not performed through a dedicated API. The programmer uses the functions and components provided by National Instruments or third-party provid-ers for this purpose. [3]

In conclusionPresently FECOS is successfully running on a variety of devices along the MedAustron accelerator structure. These devices in-clude ~300 magnets and their correspond-ing power converters, RF systems, ~150 beam diagnostics devices and ion sources. Most of these devices are also synchro-nized by the Main Timing System FECOS component.

Currently Cosylab engineers are participat-

ABOUT THE AUTHORS

[1] J. Gutleber, A. Brett, R. Moser, M. Marchhart, C. Torcato de Matos, J. Dedič. The MedAustron Accelera-tor Control System, Proceedings of ICALEPCS2011, held from 10-14th October 2011 in Grenoble, France. (Paper: http://accelconf.web.cern.ch/AccelConf/icalepcs2011/papers/mobaust03.pdf ) (Presentation: (http://accelconf.web.cern.ch/accelconf/ica-lepcs2011/talks/mobaust03_talk.pdf )

[2] R. Štefanič, R. Tavčar, J. Dedič, J. Gutle-ber, R. Moser. Timing System Solution for Medaustron; Real-Time Event and Data Distribution Network. Proceed-

ing in work on the Medical Front End which will result in additional LabVIEW compo-nents built on the FECOS framework. The aim of the Medical Front End is to ensure complete safety for patients being treated at MedAustron.

FECOS is a good example of the continuous collaboration between Cosylab, MedAus-tron and National Instruments’ engineers which resulted in a modern state-of-the-art Front End Controller Framework, the first one ever implemented purely in Lab-VIEW. The Front End Controller Framework is now being finalized with feedback from MedAustron engineers.

ings of ICALEPCS2011, held from 10-14th October 2011 in Grenoble, France. (http://accelconf.web.cern.ch/accelconf/icalepcs2011/papers/wepmn015.pdf )

[3] Matej Šekoranja, FECOS Overview. http://indico.cern.ch/event/88130/session/5/contribution/23

[4] Matej Šekoranja, Miha Vitorovič, Rok Štefanič, FECOS, https://indico.cern.ch/event/100610/session/0/contribu-tion/4/material/slides/

Pictures for T-Shirts!

You are invited to submit photographs of you, your friends and col-leagues, your kids, wife, the family pet, the president - basically any-body or anything! - in a Cosylab T-shirt. If you don’t yet have a T-shirt, then try to get a picture with someone from Cosylab in the T-shirt.

Not only will we send you a T-shirt (there are many new designs!), but you will also get your picture published in Control Sheet.

Send pictures to [email protected].

Volume 19 Control Sheet ISSN: 1855-9255

7page:

Compare the two screens on this page. I grabbed the top one from a Google im-age search for “control room GUI” [1]. The image below is a “makeover” of the first, following the rules of a style guide. The makeover was done by simply replacing the colors of shapes and backgrounds in Photoshop and making small design adjustments: no Botox, no surgery, just make-up and eyeliner! ;-)

Note: My purpose is to make a few gen-eral points in this article and not to make a judgment about this particular screen, its author or purpose. This screenshot hap-pened to be readily available and very il-lustrative to the article.

So, let’s ask ourselves a few questions:

If this GUI wants to tell us about an im-

GUI Style Guides:Haute Couture Window Dressing?

portant problem with the machine, in the form of an alarm, in which of the versions would you spot it easiest?

A traffic light on Time Squares in backlight vs. one in the suburb at dusk?

That’s why the style guide for the made-over GUI would tell you:

◊ Use only neutral greys (with their RGB values) for panel backgrounds

• The background is then subdued and screens look consistent.

◊ Use such and such preset colors that are Lightness values (tones) of the same blue Hue (and no other hues of blue) for the main panels on the screen: titles, groupings, lists, …

By : Frank Amand (Cosylab)

After...

Before...

Experimental psychology research on visual perception has taught us that color perception is a very complex mat-ter. Managing the color use in GUIs is NOT a matter of Window Dressing, it is a vital element to good Usability.

A professional GUI style guide will not just give your developers a head-start and make the GUI’s look better, it is a matter of actual improved functionality and reduced operator error!

Volume 19 Control Sheet ISSN: 1855-9255

8page:

ABOUT THE AUTHOR

ACKNOWLEDGEMENT

Frank Amand, Belgian, joined Cosylab in 2011. Previ-ous work experience includes 12 years with Royal Philips in Belgium and the Netherlands in a variety of software engineering related roles. His technical expertise lays in the domain of human-computer interaction, GUI design and usability. He is currently Cosylab’s Head of Marketing.

The author would like to thank Andreas Luedeke from PSI for his valuable feedback on a draft of this article.

[1] http://www.softwaretool.com/Gui.htm

[2] Christian Dior Autumn-Winter2008, John Galliano

[3] http://www.rwrinnovations.com/train_engineers_kit.htm

PHOTO SOURCESIf your team of 2-3 people has to produce say 50 screens, talking to many stakehold-ers for requirements, design iterations and you give them “carte-blanche” in terms of this pure look-and-feel aspect, what are the chances they come up with a consis-tent set of screens?

Indeed, a style guide with “keep-it-simple” rules, a few applicable GUI design patterns and some examples will energize your team and overcome the blank page syn-drome rather than stifling their creativity.

Does a style guide solve all GUI design problems? No! A cosmetic makeover of a screen with real usability flaws will not fix those. For that you need to do a good interaction (re)design exercise. But the user experience (UX) will be affected if 50 screens have the same consistent, restful, unconfusing look. It’s a great first step to improving control screens.

And to get back to the provocative “Haute Couture?” in the title.

Should good, consistent GUI styling be seen as merely a “Haute Couture” exercise?

Well, doesn’t the original screen more re-semble John Galliano’s creatures then the “makeover”? [2]

Compare them with those “cuties in blues and grey” next to them. [3] Which ones look more helpful running your accelera-tor? ;-)

• This is aesthetically pleasing and un-cluttered: lets the active, foreground elements stand out

◊ Reserve the use of highly saturated colors for important predefined func-tions such as alarm levels. Avoid large patches of these colors and have a boundary around them to separate then from the background

◊ For similar functions across screens, use the same control with the same appearance. For example, do not change the appearance of a toggle button without a very good reason.

At the top, the style guide would say a few things that would make the general layout of the screen look different in the first place:

◊ Leave enough white space (at least 10 pixels) between elements and be-tween elements and the border.

◊ Group elements that belong together using “Gestalt principles”

• Put them close together

• (Strictly) Align them

Cosylab d.d., Teslova ulica 30, SI-1000 Ljubljana, SLOVENIA

Phone: +386 1 477 66 76 Email: [email protected] URL: www.cosylab.com

Cosylab Japan Develops a Turnkey Control System for the BNCT project During a visit by Mark Pleško to the Cosylab Japan office in Tokai, developer Takashi Nakamoto put on the signature Cosylab jacket for a “partner-look” style photo in front of the BNCT accelerator, under construction in Tokai. If you have read the article on GUI Style Guides, then you can expertly judge for yourself whether the jacket colours match the coil wind-ings and contrast with the yokes - or should I say jokes? Oh yes, and no suit here this time.

Cosylab T-Shirts On April 14th, our President Mark Pleško and Vice-president for Asia, Prof. Emeritus Shin-Ichi Kurokawa, visited Hiroshima University. In classical Cosylab style, Mark pre-sented a lecture about accelerators and gave a T-shirt for each correct answer from the audience. A particularly inspired postgraduate student put on his T-shirt immediately and thus got the honour to be “photographed with our President”. Those who know Mark and his casual dress style may wonder what is more surprising: that a usually timid Japanese student put on a Cosylab T-shirt or that Mark is wearing a suit and a tie. But in Japan, everything is possible.

Sponsorship in Action Cycling in Ljubljana is an extremely popular mode of transport. The House of Experiments (Hiša Eksperimentov) took this idea and created a fun interactive experiment at the recent “Znanstival” - cycling across the Ljubljanica River! Since Cosylab was the main sponser of the Znanstival, staff had a special opportunity to cycle across the river. Pictured is Rok Tavčar proudly fly-ing (or maybe hanging!) the Cosylab banner!