OAG Tools for General Users



Similar documents
File Manager Pro User Guide. Version 3.0

DiskBoss. File & Disk Manager. Version 2.0. Dec Flexense Ltd. info@flexense.com. File Integrity Monitor

EET 310 Programming Tools

caqtdm Tutorial Jim Stevens APS Controls Group October 9, 2014

Lab 3: Introduction to Data Acquisition Cards

Desktop, Web and Mobile Testing Tutorials

System Preferences is chock full of controls that let you tweak your system to how you see fit.

Controllable Space Phaser. User Manual

DATA MINING TOOL FOR INTEGRATED COMPLAINT MANAGEMENT SYSTEM WEKA 3.6.7

NVMS User Manual

Mouse and Pointer Settings. Technical Brief

13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES

S m a r t M a s t e B T E C O R P O R A T I O N USER MANUAL

Navios Quick Reference

GelAnalyzer 2010 User s manual. Contents

PyRy3D: a software tool for modeling of large macromolecular complexes MODELING OF STRUCTURES FOR LARGE MACROMOLECULAR COMPLEXES

Personal Call Manager User Guide. BCM Business Communications Manager

Appendix 2.1 Tabular and Graphical Methods Using Excel

Using Excel (Microsoft Office 2007 Version) for Graphical Analysis of Data

Building a Simulink model for real-time analysis V Copyright g.tec medical engineering GmbH

Introduction to Simulink

WEB TRADER USER MANUAL

Application. 1.1 About This Tutorial Tutorial Requirements Provided Files

Corsair Link v2.4 Manual. Initial Set-up. Placing devices within the chassis

Introduction to ROOT and data analysis

A Design of a PID Self-Tuning Controller Using LabVIEW

DAS202Tools v1.0.0 for DAS202 Operating Manual

ICP Data Validation and Aggregation Module Training document. HHC Data Validation and Aggregation Module Training Document

Understanding Task Scheduler FIGURE Task Scheduler. The error reporting screen.

DiskPulse DISK CHANGE MONITOR

Data Warehouse Troubleshooting Tips

Universal Simple Control, USC-1

How To Use The Workstation Program On A Pc Or Mac Or Macbook Or Macintosh (Aero) With A Computer Or Ipa (A2) With An Ipa Or Ipad (A3) With The Powerpoint 2.

Bitrix Intranet Portal. Business Process Guide

InTouch Example Description

ASUS GPU Tweak User Manual

MIDAS. Event Log Viewer User s Guide. Part Number MN/MID-EVLOG.IOM Revision 0

Working with SQL Server Agent Jobs

User Guide QAD Customer Relationship Management. Introduction Sales Management Marketing Management Customer Service

School of Electrical and Information Engineering. The Remote Laboratory System. Electrical and Information Engineering Project 2006.

Publishing Geoprocessing Services Tutorial

WebSphere Business Monitor V6.2 Business space dashboards

SysPatrol - Server Security Monitor

NVMS USER MANUAL. Version 2.1.0

iridium for KNX/EIB Fast Start: Connection Setting Manual for KNX/EIB equipment

DeltaV Event Chronicle

Mobile App Monitoring. Release Notes. Release 8.0

Controller Automation, Model II+

SIMATIC. WinCC V7.0. Getting started. Getting started. Welcome 2. Icons 3. Creating a project 4. Configure communication 5

Call Recorder Oygo Manual. Version

TimeBillingWindow. User guide 2014

DataPA OpenAnalytics End User Training

SubCue Analyzer Software - Introduction

Xopero Centrally managed backup solution. User Manual

IR-210/712A + TouchPAD

Cleaning your Windows 7, Windows XP and Macintosh OSX Computers

Software version 1.1 Document version 1.0

SA-9600 Surface Area Software Manual

WebSphere Business Monitor V7.0 Business space dashboards

Ovation Operator Workstation for Microsoft Windows Operating System Data Sheet

Market Pricing Override

Short Manual Intellect v SP2 module Unipos Contents:

EDM SOFTWARE ENGINEERING DATA MANAGEMENT SOFTWARE

AB-Clock. Manual. Copyright by GRAHL software design

Using Flow Control with the HEAD Recorder

TABLE OF CONTENTS. Copyright Pro Softnet Corporation. All rights reserved. 2

PowerLogic ION Enterprise 6.0

Attix5 Pro Server Edition

SANbox Manager Release Notes Version Rev A

If there is not a Data Analysis option under the DATA menu, you will need to install the Data Analysis ToolPak as an add-in for Microsoft Excel.

Nortel Networks ipview Software Wallboard Set Up and Operation Guide

Finance Reporting. Millennium FAST. User Guide Version 4.0. Memorial University of Newfoundland. September 2013

Creating an Excel XY (Scatter) Plot

Novell ZENworks Asset Management 7.5

Reference Guide for WebCDM Application 2013 CEICData. All rights reserved.

Gerrit Stols

AMS Suite: Machinery Health Manager v5.4

Microsoft Project Server 2010 Project Manager s Guide for Project Web App

Gantner Instruments test.node Start-Up Guide

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

The LIGO Data Monitoring Tool. John G. Zweizig LIGO, Caltech

Plotting: Customizing the Graph

The software solution to complete your flow monitoring program

Structural Health Monitoring Tools (SHMTools)

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Recording Supervisor Manual Presence Software

Processing Data with rsmap3d Software Services Group Advanced Photon Source Argonne National Laboratory

VWF. Virtual Wafer Fab

SHAREPOINT 2010 FOUNDATION FOR END USERS

TFA. KlimaLogg Pro. User Manual. Revision: 0.1

INTELLECT TM Software Package

Quick guide steps you need to take

Citrix EdgeSight for Load Testing User s Guide. Citrx EdgeSight for Load Testing 2.7

Data Mining. SPSS Clementine Clementine Overview. Spring 2010 Instructor: Dr. Masoud Yaghini. Clementine

Multi Channel software

Data Retrieval. Chapter III. In This Chapter

Transcription:

OAG Tools for General Users A Contribution to the Getting Started with EPICS Lecture Series Michael Borland Operations Analysis Group APS Operations Division Argonne National Laboratory August 24, 2004 Brief Introduction to OAG Group of accelerator physicists and programmers formed in 1995 to apply the lessons of commissioning to accelerator operation. We write high-level applications for physicists, engineers, and operators, e.g., Automated startup and shutdown Orbit correction and steering Accelerator experiments We manage the accelerator data logging systems and configuration control systems. Much of the software we write is generic and can be used in any EPICS context. Outline Intended Audience Brief introduction to Operations Analysis Group Intended audience What you'll learn How to access the software General features of OAG applications Accessing the accelerator data logs We cater to a range of users Programmers in a variety of languages Those who want commandline tools Those who want an easy-to-use graphical user interface (GUI) Today, we'll concentrate the last type. Underlying software is the same. Performing data analysis Two later talks will concentrate on the details. Controlling things through EPICS Summary 1

A Few Details What You Can Learn from this Talk We build our applications out of two components Tcl/Tk: a scripting language that allows easily making graphical user interfaces (GUIs). SDDS: a type of general data file and a toolkit of C programs that work with such files. Almost all the screen-shots in this presentation are Tcl/Tk GUIs. The data processing is done by SDDS tools hidden under the Tcl/Tk layer Types of applications that are available from OAG Features and usage of specific applications Detailed click-by-click guidance, Review of the interface, or Listing of major features. Important concepts for using OAG applications SDDS files and meta-applications Reusing data and programs SDDS Toolkit for data processing and display SDDS/EPICS Toolkit for EPICS-specific functions How you can do even more with SDDS Toolkits How OAG software differs from similar EPICS clients Accessing the Software OAGapps Main Menu For AOD, ASD, and XFD staff with access to a Sun workstation, access is via your workspace menu Right-click on the background to bring up the workspace menu Click on Accelerator Data Click on OAGapps Generic applications for controlling things in EPICS Applications for accessing the accelerator data logs Others can download from our website: http://www.aps.anl.gov/asd/oag/oaghome.shtml Data collection, review, and analysis utilities 2

A Typical OAG-Style Application Context-Help Feature Status window manipulators Scrolling status window Tabs for frame selection Various types of entry boxes. Double right-clicking on most widgets will bring up help for that widget. The Command-Selection Feature Helps Link Applications The F button brings up a file selection dialog. Select file Select recently-used file Launch another application using given file 3

Why All the Files? OAG applications require input and output filenames as part of data processing Some feel this is inconvenient or even bad software design However, using files Lets user name and identify data and results Creates open-ended meta-applications out of many small, simple applications Lets anyone add to the application suite Avoids getting trapped by software that doesn't do what you want Data Logger Review SubMenu Access archives of accelerator-related data Review alarm history Review signal values Review history of setpoint changes Review glitches Find process variables in the data loggers Alarm Logger Review Alarm Logging or ALH? The alarm logger review utility allows Reviewing alarms by subsystem and time period Finding alarm times, severity, and status Viewing related information (e.g., status bits) Histogramming alarm density Look for overlapping alarms We monitor alarms on 14k process variables Private alarm logs also supported ALH (ALarm Handler) is a GUI for alerting operators to alarms ALH logs data, but Must have GUI open Not space efficient No analysis tools sddsalarmlog provides Background logging You need both! Space-efficient format Sophisticated analysis and review tools 4

Monitor Data Review Application Alarm Log Review Application System tabs Provides access to 37k logged quantities. Data group selection Time-span selection Select predefined plots Create custom plots Export data Preset Plots Dialog A Typical SDDS Plot Plot modifiers Preset plot choices (select one or more) For example, select Zone Air Temperatures (sep plots) Button to actually make plot X-windows interface by by K. K. Evans. 5

Web Access to Accelerator Data Logs Listing of data groups same as in the Tcl/Tk application Sample output from web-based data review In this example, we select some process variables explicitly. 6

Exporting Data In this case, sddsexportdata is launched from the data review application to allow exporting the selected data. Exporting Data Wildcard sequence to narrow the list of signals to choose. The air temperatures for all zones were selected. Exporting Data Working with Exported Data SDDS output allows using with other OAG applications. Use command dialog to launch next application Export to private file 7

SDDS Utilities SubMenu Quick interfaces to basic SDDS capabilities Graphics Fitting Digital signal processing Statistical analyses Edit Export/import quick SDDS DSP : Digital Signal Processing Fast Fourier Transforms Input file preset by export application Select independent and dependent variables Specify output file and processing parameters Do the analysis and display results Example of FFT Results More DSP: NAFF Numerical Analysis of Fundamental Frequencies FFT shows 1 and 0.5 day components to temperature variation To make it more interesting, look at all 172 AHU temperatures for the experimental hall. 8

NAFF Reveals a Wealth of Information Periods cluster Phases near 1 day with cluster near up to to 1.7 deg 100 degrees amplitude quick SDDS Statistics Histograms Statistics computation Outlier analysis Correlation analysis Input for histogram is the output from NAFF analysis. Diurnal effect accounts for 10~80% of of variation The idea of using one program's output as another program's input is central to SDDS. Sample Histogram Results Searching for Correlations Search for correlations with outside air temperature 9

Correlation Analysis: Experimental Hall Temps. with Outside Air Temp. Correlation Scatter Plot Example Statistics Computation Statistics Results Example of computing a variety of statistics for AHU temperatures 10

SDDS Utilities SubMenu (again) Quick interfaces to basic SDDS capabilities Data collection Experiment execution Data Collection quickmonitor Interface to basic features of the program sddsmonitor Time-interval-based data collection quickwaveformmonitor Interface to basic features of the program sddswmonitor Time-interval-based collection of waveforms and scalar values For more sophisticated applications, one can use commandline SDDS tools... SDDS Data Collection Capabilities Capabilities include Time series logging of values and statistics Glitch-, alarm-, or trigger-initiated logging with pre- and post-event samples Synchronous and quasi-synchronous logging Logging of changes to values Alarm logging with related data capture Input files for these programs are largely identical All APS accelerator data logging uses these tools See our web site or later talks for more... quickmonitor PV names loaded by hand or from SDDS file. Pressing run begins data collection Provide optional alias for output column name 11

MEDM Allows Dragging and Dropping PV names Click on PV widget with middle mouse button quickmonitor Run Dialog sddsmonitor command is visible (educational!) Click in entry box with middle mouse button K. Evans' NameCapture application makes SDDS file directly Stop sddsmonitor and close window Basic plot features (use command dialog for more) Stop sddsmonitor but keep window open quickmonitor or StripTool? StripTool is a popular EPICS client for time-series sampling Convenient interface Scrolling plots of the data Use StripTool when ~5 channels or less Primary interest is seeing the data Note: StripTool can dump SDDS data Use quickmonitor when More than ~5 channels Primary interest is analyzing the data quicksddsplot can perform movie plots of updating data Homework: Analyse the Vlinac* Simulation Use quickmonitor to collect data on all PVs. Use quicksddsplot to review signals: Final current (FC1) varies with time. Use quicksddsstatistics to look for correlations with FC1: Cathode temperature is highly correlated. Use quicksddsdsp to look for frequencies: Clear 60s oscillations! *N. Arnold, ASD 12

Experiment Execution: quickexperiment Example with Vlinac Limited interface to sddsexperiment Perform 1-D experiments with several (ganged) variables Measure any number of readbacks, with averaging and statistics sddsexperiment offers more N-dimensional experiments Verification of response of variables Test limits to ensure data quality Script execution PV names loaded by hand or from SDDS file (compatible with quickmonitor) Variables Tab Parameters Tab Pressing run launches sddsexperiment in a run dialog (just like quickmonitor). 13

Use quicksddsfit to Look at Results Intensity Data Is Bi-Linear Provides polynomial, exponential, and gaussian fitting and display. Linear Fit to One Side Experiment Execution: ExperimentDesigner Allows designing complex experiments that involve Initialization Execution sequence User interaction Coordination of external programs and scripts Finalization Postprocessing Configurations can be saved and executed as a script with no interface Allows N-dimensional experiments 14

ExperimentDesigner: PV Panel Experiment Designer: Initialization Design Loaded configuration from file menu. Defined equation to compute a new quantity from PVs. Declared PVs directly visible to the script: controls and readbacks Set cathode current, check response Turn gun on, check response Open valve, check response Restore setpoints from SDDS file Launch cathode temperature regulator (more later) Experiment Designer: Execution Design Experiment Designer: Run Program Dialog Allows easily invoking SDDS data collection engines For each experiment step: Change control values Wait a specified time Read declared PVs Run program Run Script action (not shown) used for general programs. 15

Experiment Designer: Output Files Tab quicksddsplot Interface Provides greatly attenuated access to sddsplot. In this example, we select quicksddsplot to review the statistical results. quicksddsplot Output Example Generic Controllers SubMenu Set up a one-readback, one-actuator feedback loop Set up and perform optimizations Change PVs in oscillatory or ramped fashion Set up knobs and 2D sliders 16

Can use the script maintainreadback to regulate Vlinac cathode temperature The readback is the thing to be stabilized (cathode temperature) The actuator is the control used to stabilize the readback Use GetGain button to measure response coefficient Sample for 60s and use midpoint of readings to deal with the oscillation. sddsexperiment run dialog Effectiveness of Feedback Feedback turned on Graph of the response Gain value automatically entered in dialog Reduction in oscillation limited by update rate of the PVs 17

Generic Optimizer* Example: Optimization of the Vlinac A common requirement in control systems is optimization of some quantity Feedback requires quasi-linear responses measured around the desired point Automated optimization is useful when none of these conditions apply Explores new territory Has advantages over manual tweaking Deliberately mis-set all the correctors in the Vlinac simulation Set up optimizer with 10 variables: the setpoints for all the correctors 1 readback: the final beam current Use Simplex method without initial 1D scans To reduce current ripple and noise effects: It is relatively slow Use maintainreadback to regulate cathode temperature Average for 60 seconds *Inspired by J. Lewellen's amoeba script. Optimizer Interface: Variables Tab Optimizer Interface: Measurement Tab Any number of actuators ( variables ) Enter limits and initial step sizes Provide composite knob definition files Optimizes the mean-absolute-value (MAV) or RMS of any number of readbacks with optional offsets and weighting 18

Optimizer Interface: Tests Tab Optimizer Interface: Parameters Tab Optional test values to prevent optimizer from running when conditions are not right (e.g., no beam) Simplex or successive 1-D scan methods User-specified averaging and post-change pause Can optimize with user script to compute penalty function Optimizer Result User goes to sleep User goes home Optimizer done Summary OAG provides a number of tools for the general EPICS user Access to accelerator data logs Perform data collection Plot and analyze data Design and execute experiments Feedback and optimization These tools are interlinked by SDDS files Don't miss follow-up lectures OAG Tcl/Tk (R. Soliday) SDDS (M. Borland) 19

OAG Group Members Present: M. Borland, L. Emery, N. Sereno, H. Shang, R. Soliday Emeritus: D. Blachowicz, B. Dolin, K. Evans, C. Saunders 20