Developing a new instrument control system for ISIS: lessons learned - - PowerPoint PPT Presentation

developing a new instrument control
SMART_READER_LITE
LIVE PREVIEW

Developing a new instrument control system for ISIS: lessons learned - - PowerPoint PPT Presentation

Developing a new instrument control system for ISIS: lessons learned Matt Clarke Sample Environment Control Interface (SECI) Reasons for replacing Increasingly complex instruments Motion control Cameras, robots etc. Difficult to


slide-1
SLIDE 1

Developing a new instrument control system for ISIS: lessons learned

Matt Clarke

slide-2
SLIDE 2

Sample Environment Control Interface (SECI)

slide-3
SLIDE 3

Reasons for replacing

  • Increasingly complex instruments

– Motion control – Cameras, robots etc.

  • Difficult to extend or modify

– Close-coupled – Multiple responsibilities

  • Limited opportunities for collaboration

– Dependent on LabVIEW – Windows only

  • Mantid integration
slide-4
SLIDE 4

The new system

  • EPICS-based

– Well established and defined framework – Client/server model – Used at Diamond and the SNS

  • Will replace the existing control system

– ~30 instruments

  • Initially targeted for LARMOR and CHIPIR
  • SECI++
slide-5
SLIDE 5

EPICS – a one slide introduction

Device Publishes Process Variables (PVs)

  • IN:LARMOR:EUROTHERM:TEMP1
  • IN:LARMOR:EUROTHERM:TEMP1:SP

C++ Python Java C# LabVIEW

IOC IOC IOC IOC Channel Access (CA) Device Device Device

slide-6
SLIDE 6

The project

  • Large scale software project
  • Hired an external project manager from

Tessella

  • Initial “pilot project”
  • Project officially started in December 2012
  • Developing while maintaining old system!
  • 2 contractors
slide-7
SLIDE 7

Scrum - how it works

Product Backlog Sprint Backlog

Sprint Planning Sprint 3 Weeks 4 Weeks Sprint Ends

Sprint Review/Demo Sprint Retrospective Useable Chunk

  • f Software
slide-8
SLIDE 8

The white board (current version)

slide-9
SLIDE 9

The approach

  • Two instruments = two different methods

– CHIPIR = EPICS and SECI in parallel

  • Relatively simple instrument
  • Basic read-only GUI required
  • Integrating LabVIEW

– LARMOR = full EPICS system

slide-10
SLIDE 10

CHIPIR

  • lvDCOM

– VIs requires no alteration – Configuration files for the IOCs are auto-generated – Quick to do

EPICS SYSTEM (Win7 VM) IOC SECI SYSTEM (Win7 VM) VI lvDCOM GUI Client GUI Client

slide-11
SLIDE 11

LARMOR

  • 40+ motors
  • No LabVIEW
  • New GUI
slide-12
SLIDE 12

GUI mock-up

slide-13
SLIDE 13

Control System Studio + BOY

slide-14
SLIDE 14

Version 1

slide-15
SLIDE 15
slide-16
SLIDE 16
slide-17
SLIDE 17

Version 2

slide-18
SLIDE 18

Current status

slide-19
SLIDE 19

Mantid

slide-20
SLIDE 20

What went well

  • External project manager

– Different perspective – Greater expertise – Developers developing

  • Scrum
  • Pilot project
  • lvDCOM
  • Incorporating code from outside (mostly)
  • Support from other institutes
  • Being able to test on a real instrument
slide-21
SLIDE 21

What did not go well

  • Not enough customer involvement, especially at the

beginning

  • Sprint demos
  • Not everyone comfortable with Scrum

– Lack of a detailed long term plan can be unsettling – Hard to plan your objectives for the year

  • Eclipse RCP

– A steep learning curve

  • Too many tickets in a sprint – FIXED!

– Dodging tickets

  • Three week sprints – FIXED!
  • Tickets not being reviewed – FIXED?
slide-22
SLIDE 22

Thank you