ICS Test Environment Alexander Söderqvist www.europeanspallationsource.se Dec 9, 2014.

Slides:



Advertisements
Similar presentations
Cultural Heritage in REGional NETworks REGNET Project Meeting Content Group
Advertisements

Controller Tests Stephen Kaye Controller Test Motivation Testing the controller before the next generation helps to shake out any remaining.
Configuration management
Testing Workflow Purpose
Test Yaodong Bi.
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Digital RF Stabilization System Based on MicroTCA Technology - Libera LLRF Robert Černe May 2010, RT10, Lisboa
Delta Tau Coordinate Systems and PLCs at Diamond Matthew Pearson Controls Group, Diamond Light Source Overview: Delta Tau Geobrick motor controller Delta.
Workshop 7 of 7 Welcome!. Today's Topics Data Acquisition MAX DAQ Assistant Express VI DAQmx API Create Task Configure Task Configure Trigger Start Task.
Course contents 1.Labview basics – virtual instruments, data flow, palettes 2.Structures – for, while, case,... – editing techniques 3.Controls&Indicators.
Quickfilter Pro Software Demonstration for QF1D512 The following slides will illustrate how you can design and verify a filter design in minutes! BEGIN.
Jeffrey Hill.  LANSCE Requirements – a Review  EPICS Paradigm Shift – a Review  Status – What is Implemented  What is an Abstract Data Type?  Benefits.
Data Acquisition Risanuri Hidayat.
Using an FPGA to Control the Protection of National Security and Sailor Lives at Sea Brenda G. Martinez, Undergraduate Student K.L. Butler-Purry, Ph.D.,
Test of LLRF at SPARC Marco Bellaveglia INFN – LNF Reporting for:
MotoHawk Training Model-Based Design of Embedded Systems.
A new servo controller for a Materials Testing Machine - MTM Final Presentation B Students : Uri Goldfeld & David Schwartz Supervisor : Daniel Alkalay.
1 Lab Equipment. 2 TopicSlides DC Power Supply3-4 Digital Multimeter5-8 Function Generator9-12 Scope – basic controls13-20 Scope – cursors21-24 Scope.
Chapter 8 Inverters AC Power • Inverters • Power Conditioning Units • Inverter Features and Specifications.
Introduction to Software Testing
1 QED In Vivo USB Input Output Box configuration This tutorial contains a number of instructions embedded in a great deal of explanation. Procedures that.
Advanced Phasor Measurement Units for the Real-Time Monitoring
© 2012 IBM Corporation Rational Insight | Back to Basis Series Chao Zhang Unit Testing.
APS BPM and power supply applications on micro-IOCs W. Eric Norum
Electronics for PS and LHC transformers Grzegorz Kasprowicz Supervisor: David Belohrad AB-BDI-PI Technical student report.
Rsv-control Marco Mambelli – Site Coordination meeting October 1, 2009.
TLA5000B Series Logic Analyzer Fact Sheet Breakthrough solutions for real-time digital systems analysis Featuring:  125 ps-resolution MagniVu™ acquisition.
Data Acquisition Data acquisition (DAQ) basics Connecting Signals Simple DAQ application Computer DAQ Device Terminal Block Cable Sensors.
Nightly Releases and Testing Alexander Undrus Atlas SW week, May
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
Module 7: Fundamentals of Administering Windows Server 2008.
Magnetic Field Measurement System as Part of a Software Family Jerzy M. Nogiec Joe DiMarco Fermilab.
Nov 1, 2011 RN - 1 Jet Propulsion Laboratory California Institute of Technology Implementation Issues and Choices for VLBI data Acquisition System in DSN.
Testing Workflow In the Unified Process and Agile/Scrum processes.
Contents 1.Introduction, architecture 2.Live demonstration 3.Extensibility.
The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec
Software Construction Lecture 18 Software Testing.
LHC Collimation Project Integration into the control system Michel Jonker External Review of the LHC Collimation Project 1 July 2004.
Fast Fault Finder A Machine Protection Component.
EPICS Release 3.15 Bob Dalesio May 19, Features for 3.15 Support for large arrays - done for rsrv in 3.14 Channel access priorities - planned to.
Network design Topic 6 Testing and documentation.
Digital Electronics and Computer Interfacing Tim Mewes 5. Computer Interfacing – DAQ cards.
Ethernet I/O Set-Up This presentation will step through a typical configuration of the CON-DVT-IOE. Intellect 1.5 is used for the software portion. NEXT.
5 June 2002DOM Main Board Engineering Requirements Review 1 DOM Main Board Software Engineering Requirements Review June 5, 2002 LBNL Chuck McParland.
TESTING FUNDAMENTALS BY K.KARTHIKEYAN.
GAN: remote operation of accelerator diagnosis systems Matthias Werner, DESY MDI.
TDAQ Experience in the BNL Liquid Argon Calorimeter Test Facility Denis Oliveira Damazio (BNL), George Redlinger (BNL).
SPI NIGHTLIES Alex Hodgkins. SPI nightlies  Build and test various software projects each night  Provide a nightlies summary page that displays all.
BPM stripline acquisition in CLEX Sébastien Vilalte.
Power Analyzer Option History of Power Analysis Software  Strong history of power analysis going back to late 1990’s  Software evolved.
SIDE SCAN HARDWARE CONFIGURATION
Project Planning Defining the project Software specification Development stages Software testing.
T EST T OOLS U NIT VI This unit contains the overview of the test tools. Also prerequisites for applying these tools, tools selection and implementation.
Testing Overview Software Reliability Techniques Testing Concepts CEN 4010 Class 24 – 11/17.
© 2009 Artisan Software Tools. All rights reserved. Testing Solutions with UML/SysML Andrew Stuart, Matthew Hause.
DECTRIS Ltd Baden-Daettwil Switzerland Continuous Integration and Automatic Testing for the FLUKA release using Jenkins (and Docker)
Injectors BLM system: PS Ring installation at EYETS
Digital Acquisition of Analog Signals – A Practical Guide
Status of Fast Controller EPICS Supports for ITER Project
Introduction to Software Testing
Combiner functionalities
Commodity Flash ADC-FPGA Based Electronics for an
J. Emery, B. Dehning, E. Effinger, G. Ferioli, C
A Virtual Implementation of VELA (CLARA)
Wavewin Sniffer 24 Configuration & Polling Software
Control Systems for the APTM and GRID
quadEM: New Beam Position Monitor & Electrometer Hardware and Software
Red Pitaya with EPICS Andraz Pozar EPICS Collaboration Meeting
Presentation transcript:

ICS Test Environment Alexander Söderqvist Dec 9, 2014

Content Introduction Test description Result Tools Conclusions Demonstration 2

Introduction Usecases Testing during development Continous integration Regression testing Acceptance testing 3

Introduction Goals Implement tests for existing EPICS components. Automate and schedule tests. Coordinate test execution between test stands. Monitor and follow trend of test results. Present test result. 4

Introduction Tests Channel access Software tests – Simulated Hardware 5 Hardware-in-the-loop – Real hardware

Test description Test stand Test stand – Control box – Host for test items – Includes test equipment Test item – Item under test Test equipment – Required to perform tests Separate IOCs 6

Example, Hardware in the loop Data-acquisition card & Function Generator 7

Test description Test cases 8 Test case – Executed test entity -> Pass or fail – Input – Expected output – Test procedure Parameterized test case – Data driven – Multiple instances – Generic test procedure

Test description Test scenario Test scenario – A set of test cases. – Requires same test equipment. – Each scenario is represented by one script, which executes all test cases. 9

Test description SIS8300 Example 10

Test description SIS8300 Example contd. 11 Independent – Software acquisition – Number of samples Timing receiver – Backplane triggers Test cases are placed in the scenario with minimum test equipment required.

Test description Implementation Test scenario – Create test item & equipment a)Common Setup Verify default settings for test item & equipment b)Execute test case c)Common Teardown Set default setting for test item & equipment 12 Test item/equipment – Create Start IOC Connect to PVs Set default values – Set default settings – Verify default settings

Result µTCA test stand SIS8300 – Independent – Analog outputs – Function generator – Timing Receiver – Function generator & Timing receiver Configuration – Input coupling (AC/DC) – Memory size – Connections to analog inputs 13 SIS8300BCM – Independent – Function generator – Timing Receiver – Function Generator & Timing receiver

Result µTCA discovered issues SIS8300 Attenuation  sampling frequency Software bugs: – Max samples – Analog outputs – Irreversible error state – Decimation offset – Broken read-back values 14 SIS8300BCM FPGA firmware bug affecting: – Interlock – Average window filter – Droop compensation

Beam current monitor Test Procedure: Average window filter Method 1, Standard deviation: 1.Sample noise with all window widths. 2.Verify that standard deviation of the acquired waveform is strictly decreasing with window width. Method 2, Input stimuli: 1.Sample DC signal with 15 ns voltage drop for window widths =[2,4,8,16,32]. 2.Verify that minimum value in waveform strictly increases with window width. 15

Beam current monitor Test procedure: Channel pair interlock Threshold: 1.Set threshold [0 V, 0.1 V] 2.Generate DC signal on both channels. 3.Verify interlock status. Threshold [0 V, 0.1 V] -> Status [Set, Clear] Offset: 1.Set offset [0, 1000]. 2.Generate DC signal on first channel and delayed pulse on second. 3.Verify interlock status. Offset [0, 1000] -> Status [Set, Clear] 16

Beam current monitor Test procedure: Droop Compensation Method 1, Absolute: 1.Set droop compensation to 24%. 2.Sample DC signal, 0.5 V. 3.Verify that last sample is 0.5 V / (1-0.24)  V Method 2, Relative 1.Set droop compensation to 24%. 2.Sample DC signal. 3.Verify that V_end == V_start/ (1-0.24) 17

Test methodology Comparison Absolute Pro – Realistic -> evaluates the complete system. Con – Attenuation causes specific test cases to fail. (Even though the tested feature itself works) Relative Pro – Disregards attenuation -> Verify actual feature. Con – Excludes important parts of the system. 18 Conclusion: Do both absolute and relative tests.

Result – Test stands Serial peripheral test stand Prosilica Camera, used with FSIA. – Independent – Timing receiver Position capture, GeoBrick motion controller. – One axis – timing receiver 19

Result Soft test stand Fluorescent Screen Image Acquisition Data-on-demand 20

Tools Python Pyepics – Channel access interface – PV abstraction – Device abstraction Nose – Extends python Unittest – Support test generators – Junit xml test report 21

Tools Jenkins Continuous integration system Building and testing software continuously Tasks are specified in jobs. Configurable execution of jobs Monitoring of jobs 22

Tools Jenkins setup 23 Central jenkins Remote access to teststands. Each test item has a job. Each test scenario has a job. Jobs are specified in code.

Tools Jenkins – Generator job 24 Configured manually. Runs automatically on changes in the test environment project. 1.Fetch test environment. 2.Installs test item and scenario jobs.

Tools Jenkins – Trigger and scenario jobs 25 Trigger job – Test item 1.Install latest version of the test environment. 2.Install latest nightly of the test item software. 3.Trigger all scenario jobs related to test item. Scenario job 1.Executes test scenario. 2.Collects test result and logs.

Conclusions Implemented tests can be used as regression tests. Hardware in loop tests uncover fundamental characteristics and limitations. Several bugs discovered. Improved documenation. Sucessfully implemented using Python and Jenkins. 26

Future Long term stability testing. – Identify typical usecases. – Run for long period of time. Production controlbox testing – Identify typical production hardware and software setup. – Test compability and higher level functionality. 27

Demonstration Jenkins Wiki 28