VELA Controls in Mathematica James Jones ASTeC, Daresbury Laboratory 11 th July 2014.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 1 Introduction to Perl and CGI.
Water Rights Accounting. New Accounting Model New Technology: 1979 versus 2011 – Faster processors – Faster graphics – Larger, faster, memory – Larger,
© 2009 IBM Corporation July, 2009 | PADTAD Chicago, Illinois A Proposal of Operation History Management System for Source-to-Source Optimization.
MATLAB Presented By: Nathalie Tacconi Presented By: Nathalie Tacconi Originally Prepared By: Sheridan Saint-Michel Originally Prepared By: Sheridan Saint-Michel.
Using R as enterprise-wide data analysis platform Zivan Karaman.
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
Russell Taylor Lecturer in Computing & Business Studies.
SM3121 Software Technology Mark Green School of Creative Media.
Systems Software Operating Systems.
ALICE Data Acquisition Ben Shepherd MaRS Group ASTeC STFC Daresbury Laboratory.
Debugging Tips for Programmers. Outline Script debugging Script debugging –C shell –BASH/Bourne/Korn shell tips Compiled language debugging Compiled language.
Groovy WHAT IS IT? HOW DOES IT WORK? IS IT USEFUL?
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
Startup – Chapter 1.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Introduction to MATLAB adapted from Dr. Rolf Lakaemper.
SednaSpace A software development platform for all delivers SOA and BPM.
UPC/SHMEM PAT High-level Design v.1.1 Hung-Hsun Su UPC Group, HCS lab 6/21/2005.
JAS3 + AIDA LC Simulations Workshop SLAC 19 th May 2003.
CHAPTER FOUR COMPUTER SOFTWARE.
Python File Handling. In all the programs you have made so far when program is closed all the data is lost, but what if you want to keep the data to use.
Mobile Navigation With SVG Christian Schmitt SVG Open 2005.
Accelerator Science and Technology Centre ALICE schematic High-Level ALICE Software Development James Jones and Ben Shepherd STFC Daresbury.
An overview of scripting languages Alexander Kanavin Teachers: Barbara Miraftabi, Jan Voracek.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
K.Furukawa, Nov Database and Simulation Codes 1 Simple thoughts Around Information Repository and Around Simulation Codes K. Furukawa, KEK Nov.
240-Current Research Easily Extensible Systems, Octave, Input Formats, SOA.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 1: Introduction.
BOĞAZİÇİ UNIVERSITY DEPARTMENT OF MANAGEMENT INFORMATION SYSTEMS MATLAB AS A DATA MINING ENVIRONMENT.
EGR 115 Introduction to Computing for Engineers Introduction to Computer Programming Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
A simple Desktop DAQ for U2F readout Ulf jörnmark Physics Dept. Lund Status and plans.
Connections to Other Packages The Cactus Team Albert Einstein Institute
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2012.
Our project main purpose is to develop a tool for a combinatorial game researcher. Given a version of combinatorial puzzle game and few more parameters,
 Programming - the process of creating computer programs.
MATLAB "Mathematical Laboratory" Designed for numerical computation.
CIS 601 Fall 2003 Introduction to MATLAB Longin Jan Latecki Based on the lectures of Rolf Lakaemper and David Young.
Structuring Experimenting Esmée Bertens Tim de Ridder Herman de Vos /Department of Mechanical Engineering Systems Engineering Group Masters Team Project.
CSci 162 Lecture 8 Martin van Bommel. Large-scale Programming Up to now we have been writing relatively short programs to solve simple problem Want to.
CIS 595 MATLAB First Impressions. MATLAB This introduction will give Some basic ideas Main advantages and drawbacks compared to other languages.
1 G4UIRoot Isidro González ALICE ROOT /10/2002.
Examples of Matlab Controls Software on ALICE Andy Wolski 24 September 2014 Multiknobs: simultaneous control of a set of magnets Undulator Gap Scan ALICE.
Tuning Knobs for ATF2: An Update Anthony Scarfe, James Jones The Cockcroft Institute LCWS’07 31 st May 2007.
1 Programming and problem solving in C, Maxima, and Excel.
Rappture GUI for Carbon Nano Tube Arrays’ mechanical and thermal property simulation By Yide Wang Professor Tim Fisher Sridhar Sadasivam.
6. (supplemental) User Interface Design. User Interface Design System users often judge a system by its interface rather than its functionality A poorly.
Excel Translator™ Ultimate Risk Solutions, Inc.:
Emergent Information Technologies, Inc.
Charge Measurements on VELA
CST 1101 Problem Solving Using Computers
Tolerances & Tuning of the ATF2 Final Focus Line
Event loops 16-Jun-18.
Software for scientific calculations
Introduction to MATLAB
Event loops.
SUSPICIOUS ACTIVITY DETECTION
Event loops 17-Jan-19.
Event loops 17-Jan-19.
A Virtual Implementation of VELA (CLARA)
Event loops 8-Apr-19.
Simulation And Modeling
VELA Charge Measurements – Update
Event loops.
Event loops.
Event loops 19-Aug-19.
Presentation transcript:

VELA Controls in Mathematica James Jones ASTeC, Daresbury Laboratory 11 th July 2014

Why Mathematica? Mathematica provides a rapid-prototyping environment – Wide range of in-built functionality – From simple, to very complex, plotting capabilities – GUI constructions available – Interface to JAVA and.NET with low overhead However, not useful for long term control use – Expensive! – No compilation of code available

Simulations Additionally, large body of simulation work has been performed in Mathematica – Interface to GPT, Elegant, MAD, MAD-X – Interpreters for SDDS, tfs, GDF, ASTRA &c. For ALICE, complete GUI based simulation tool was created in MMA – Interfaced to MAD/MLC – Linear optics calculations – Optimisation routines built in

ALICE Controls

EPICS There is no (AFAIK) “native” interface to EPICS for Mathematica Solution is to leverage external interfaces into Mathematica: – ActiveX – Interface using native.NET capability –.NET – Simple.NET interface by G. Cox – Python – use Pythonika and PyEPICS – JAVA – use MMA native JAVA interface ??

ActiveX &.NET Utilises MMA native.NET capability for fast communications ActiveX Requires caRepeater – Still quite slow – Very buggy – No longer supported.NET interface from G. Cox is fast, but: – No arrays – Known memory leak causes crashes…!

Pythonika Utilises c-based interface to MMA and Python – Runs Python shell in the background Type conversion between Python & MMA done on the fly – no user input required Use PyEPICS interface in Python and “push” python commands via Pythonika Can use arrays “Very” fast – Can capture camera at ~6Hz

Other Stuff Can use Mathematica to import a wide variety of data types – Text files(!) – Images – Excel Spreadsheets Example: – Image analysis on VELA – Utilises compiled C-program to do pseudo-colour

Image Analysis

Programs Quad-scans Sol scans Image analysis BPM data analysis Slit-scans BURT Degaussing

Conclusion Mathematica provides a useful prototyping environment – Quick, small programs are perfect! Has various interfaces to EPICS with native type- casting Too expensive for production use! Python interface allows combine Python and Mathematica Can use for prototyping Python in an interactive environment…