1. EPICS IOC on CompactRIO EPICS Collaboration Meeting Fall 2011.

Slides:



Advertisements
Similar presentations
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
Advertisements

Supervisory Control & Data Acquisition DAQ Networking.
StreamBlade SOE TM Initial StreamBlade TM Stream Offload Engine (SOE) Single Board Computer SOE-4-PCI Rev 1.2.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
SNS Integrated Control System Running IOC Core on Windows and Linux Dave Thompson Wim Blokland Ernest Williams.
Multi Instruments Data Acquisition Software Evolution
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.,
Intro to CompactRIO – Oregon State University Matt Spiegelberg Field Sales Engineer Oregon / SW Washington 1.
9-12 Oct 2000PCaPAC 2000, DESY Hamburg Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
Department of Electrical and Computer Engineering Texas A&M University College Station, TX Abstract 4-Level Elevator Controller Lessons Learned.
Gelu M. Nita NJIT. OUTADATED Noise Diode Control Day/Night Attn. Ctrl. Solar Burst Attn. Ctrl. V/H RF Power Out Attn. Ctrl. Temperature Sensors OUTADATED.
Using FPGAs with Embedded Processors for Complete Hardware and Software Systems Jonah Weber May 2, 2006.
EOVSA PROJECT REVIEW: MONITOR & CONTROL SYSTEM Gelu Nita NJIT SEPTEMBER 2012 EOVSA PROJECT REVIEW MEETING 1.
System Architecture A Reconfigurable and Programmable Gigabit Network Interface Card Jeff Shafer, Hyong-Youb Kim, Paul Willmann, Dr. Scott Rixner Rice.
New Generation Automation Controller (PAC) Overview and Trend eAutomation Group Γιάννης Στάβαρης Technical Manager Ιούνιος 26, 2007.
LabView Users Group Meeting June 20 th, 2006 Process Control Using Compact Field Point/Labview Real-time Michael Tockstein Microelectronics Technology.
ADAM-5000/TCP- Distributed Ethernet I/O
EtherCAT Protocol Implementation Issues on an Embedded Linux Platform
University of Bergen public domain software: SEISLOG Linux, data-acquisition system for standard PC and embedded lowcost, low-power solutions Terje Utheim.
A modern NM registration system capable of sending data to the NMDB Helen Mavromichalaki - Christos Sarlanis NKUA TEAM National & Kapodistrian University.
Page 1 ADAM-6000 Web-enabled Smart I/O Γιάννης Στάβαρης Technical Manager Ιούνιος 26, 2007.
Industrial Control Engineering PXI software support and accelerator integration.
Final Project Review – 4/10/2008 Al Mukmin Judson Ryckman Miguel Roncal Paul Otto Walter Thorn.
02/2008 MATRIX VISION GmbH 1 Presentation The intelligent camera and Image processing sensor.
Data Acquisition Data acquisition (DAQ) basics Connecting Signals Simple DAQ application Computer DAQ Device Terminal Block Cable Sensors.
2009 FRC Control System Software Overview Dave Doerr, Mentor, Team 67 November 15, 2008.
ETRAX CRIS architecture and Xilinx FPGA Peter Zumbruch Experiment control systems group GSI (KS/EE)
Supplementary to Presentation on Kiosk Services ATM System Overview TrigMax Enterprise Solutions Mason Liu, Ph.D.
Dec 8-10, 2004EPICS Collaboration Meeting – Tokai, Japan MicroIOC: A Simple Robust Platform for Integrating Devices Mark Pleško
LCLS Undulator Positioning Control System Shifu Xu, Joseph Xu, Josh Stein Control Group, AES/APS, ANL June 15, 2006.
Running EPICS on NI CompactRIO Initial Experience Eric Björklund (LA-UR )
Other Chapters From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
Making LabVIEW look like an IOC Kay-Uwe Kasemir, LANL May 2002.
Disc Thickness Measurement System. NI Based Measurement System NI Channel, 100 kS/s, 16-bit, ±10 V Simultaneous Sampling Analog Input Module.
Topics of presentation
Final Review of ITER PBS 45 CODAC – PART 1 – 14 th, 15 th and 16 th of January CadarachePage 1 FINAL DESIGN REVIEW OF ITER PBS 45 CODAC – PART 1.
Experience Running Embedded EPICS on NI CompactRIO Eric Björklund Dolores Baros Scott Baily.
Management of the LHCb DAQ Network Guoming Liu * †, Niko Neufeld * * CERN, Switzerland † University of Ferrara, Italy.
SNS Integrated Control System Timing Clients at SNS DH Thompson Epics Spring 2003.
Connecting EPICS with Easily Reconfigurable I/O Hardware EPICS Collaboration Meeting Fall 2011.
1. LabVIEW and EPICS Workshop EPICS Collaboration Meeting Fall 2011.
CIMON TOUCH KDT SYSTEMS Introduction  Excellent Durability  The mobile CPU of the TOUCH gives excellent durability under industrial environment.
Source Controller software Ianos Schmidt The University of Iowa.
New product introduction:
Connecting LabVIEW to EPICS network
Software development Control system of the new IGBT EE switch.
11 th February 2008Brian Martlew EPICS for MICE Status of the MICE slow control system Brian Martlew STFC, Daresbury Laboratory.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
EPICS and LabVIEW Tony Vento, National Instruments
Management of the LHCb DAQ Network Guoming Liu *†, Niko Neufeld * * CERN, Switzerland † University of Ferrara, Italy.
Control System Overview J. Frederick Bartlett Fermilab June 1,1999.
SEPTEMBER 8, 2015 Computer Hardware 1-1. HARDWARE TERMS CPU — Central Processing Unit RAM — Random-Access Memory  “random-access” means the CPU can read.
Implementation and Testing of RDB Channel Archiver with MySQL Richard Ma, DePauw University Supervisor: Richard Farnsworth, Argonne National Laboratory.
January 2010 – GEO-ISC KickOff meeting Christian Gräf, AEI 10 m Prototype Team State-of-the-art digital control: Introducing LIGO CDS.
Wednesday NI Vision Sessions
Using COTS Hardware with EPICS Through LabVIEW – A Status Report EPICS Collaboration Meeting Fall 2011.
Managed by UT-Battelle for the Department of Energy LabVIEW Channel Access Implementaion Alexander Zhukov SNS.
Laboratorio per dottorandi 2017 Particle Accelerators Control System
DT80 range Modbus capability
LabVIEW EPICS Client I/O Server
An Overall Structure of the PANDA Hydrogen Targets Slow Control
Disc Thickness Measurement System
The Client/Server Database Environment
DarkSide-50 Distributed Control System Towards DarkSide-20k
Magnet Safety System for NA61/Shine
TORQUE MEASURMENT.
Development of built-in diagnostics in the RADE framework (EN2746)
Status of Fast Controller EPICS Supports for ITER Project
Channel Access Concepts
Channel Access Concepts
Presentation transcript:

1

EPICS IOC on CompactRIO EPICS Collaboration Meeting Fall 2011

Agenda EPICS Overview CompactRIO Overview EPICS IOC on CompactRIO Questions and Answers

EPICS Overview 4

Experimental Physics and Industrial Control System (EPICS) Used to develop and implement distributed control systems to operate large experiments SCADA architecture that uses client/server and publish/subscribe Input/Output Controller (IOC) collect experiment and control data Operator Interface (OPI) display data and control experiments Channel Access (CA) is a Ethernet protocol used to distribute the data Process Variables (PVs) are unique data items on CA protocol

EPICS Software Architecture Distributed Clients (OPI – Operator Interface) and Servers (IOC – I/O Controllers) Network protocol: Channel Access (CA) with Process Variables (PVs) CA (Channel Access) Analog I/O, Digital I/O, Motion Control, Image Acquisition, etc. IOC (I/O Controller) I/O HW IOC (I/O Controller) I/O HW IOC (I/O Controller) I/O HW IOC (I/O Controller) I/O HW OPI (Operator Interface) OPI (Operator Interface)

EPICS Database Hardware Sequencer (Finite State Machine) Database Engine Channel Access Protocol Server Network Traffic (Channel Access protocol) IOC Software Architecture Channel Access Protocol Server Publishes values from the database onto the network using Channel Access protocol Sequencer Controls timing for when to update values EPICS Database Contains the record definition and values Database Engine Writes I/O values to the database

CompactRIO Overview 8

CompactRIO Features at a glance PowerPC CPU 400 – 800MHz VxWorks 256 – 512MB RAM 2 – 4GB flash storage Ethernet (1 or 2 ports), Serial port, USB port I/O chassis (4 or 8 slots) FPGA (Virtex-5 LX 30 – LX 110) LabVIEW Real-Time

What is LabVIEW? Graphical system design environment Application Areas:  Acquiring data and processing signals  Automating test and validation systems  Instrument control  Embedded monitoring and control systems  Academic teaching 10

CompactRIO Architecture Flexibility and determinism of RT programming Speed and reliability of FPGA programming LabVIEW FPGA I/O Card LabVIEW Real-Time PCI VxWorksXilinx FPGA CompactRIO Architecture I/O Slots LAN

cRIO-9014 cRIO-9103 Temperature chamber (fan and light bulb) NI 9211 Acquires temperature from chamber NI 9474 Sends digital signals to toggle the fan and the light in the chamber Sound and vibration simulator (not used)

Hands-On Exercise 1: Verifiying and configuring setup Exercise 2: Setup a simple temperature control VI

LabVIEW FPGA Allows domain experts to use FPGA technology Requires no HDL skills 14

C-Series I/O Modules 100s of modules of many different types: ai, ao, dio, motion, relay, CAN, RS232, profibus, temperature Plug and Play functionality over Scan Engine with many of them 15

What can I do with an FPGA? Loop speeds of 40MHz or more Custom triggering Custom acquisition/generation Offload CPU intensive tasks True parallelism Integrate HDL IP Encryption 16

LabVIEW FPGA Applications 17

Hands-On Exercise 3?: I don’t think an FPGA exercise makes much sense here. It will introduce too many notions with no time to explain them. Maybe just build a little more over the previous 2 exercises instead.

EPICS IOC on CompactRIO 19

CompactRIO Architecture Flexibility and determinism of RT programming Speed and reliability of FPGA programming LabVIEW FPGA I/O Card LabVIEW Real-Time PCI VxWorksXilinx FPGA CompactRIO Architecture I/O Slots LAN

Embedding EPICS IOC on CompactRIO EPICS IOC and LabVIEW Real-Time running simultaneously Take advantage of FPGA platform with CompactRIO LabVIEW FPGA I/O Card EPICS IOC LabVIEW Real-Time PCI VxWorksXilinx FPGA CA CompactRIO Architecture I/O Slots

EPICS Database Hardware Sequencer (Finite State Machine) Reads values from the database to drive state changes in the IOC control application. Channel Access Protocol Server Publishes values from the database onto the network using Channel Access protocol. Network Traffic (Channel Access Protocol) Shared Memory LabVIEW Application IOC Server on CompactRIO Database Engine

IOC Server on CompactRIO CompactRIO controller runs VxWorks Implemented via shared memory Interface to hardware via LabVIEW RT and FPGA Can be used with Scan Engine Requires a custom VxWorks kernel (LV 2010 SP1 and earlier) Requires special.out files (LV 2011) Limited EPICS Device Support # Read a double from shared memory record(ai,"$(NAME):AI0") { # field("Read a double from SM") field(DTYP,"SM Device") field(SCAN,".1 second") }

Shared Memory Benchmarks – LV 8.5 – 9014 Arrays – Maximum transfer of 1 to 5 MB/s Integers – Maximum transfer of about 10 to 12 kB/s

Example – Los Alamos LANSCE Migration to a cRIO with embedded EPICS  12 binary outputs  36 binary inputs  12 analog inputs  5 stepper motor channels Full IOC functionality allows access to all record fields and EPICS utilities Maximum flexibility for partitioning the problem  LabVIEW for beam diagnostic  EPICS for industrial control

Options for EPICS and NI Hardware 1 2a 2b 3 LabVIEWI/O Server EPICS CA Client or Server LabVIEW RT on cRIO Shared Memory EPICS IOC on VxWorks LabVIEW RT on PXI Hypervisor Shared Memory EPICS IOC on Linux PXI (No LabVIEW) Linux Driver Device Support EPICS IOC on Linux

Hands-On Exercise 3: EPICS IOC on cRIO

Demo

3 rd Party Options 29

Other Options for Integrating EPICS and LV SNS – Shared memory interface SNS – Native CA support in LabVIEW Observatory Sciences

SNS - EPICS Shared Memory Interface Shared Memory DLL EPICS Channel Access EPICS Database EPICS Channel Access EPICS Database ReadData() WaitForInterrupt() GetIndexByName() WriteData() SetInterrupt() CreateDBEntry() LabVIEW Application (Wire scanner, BPM, etc) EPICS IOC

Shared Memory IOC The Shared Memory IOC allows us: Support additional processes Use records as placeholder of data but no function Not worry about buffering data Respond to events Be compatible with other IOCs Functions : Create, find and destroy variables Read from and write to variables Set and receive events Retrieve information about variables Create IOC database Integration with the control system

Pros and Cons Advantages You have full IOC and everything that comes with it (including record processing) All EPICS tools will work by default Challenges Linux and RTOS support would require considerable efforts Need to support 2 infrastructures for EPICS IOC and for LabVIEW program deployment is complicated.

Instrumentation Measure beam parameters such as position, transverse profile, current, etc Off-line Data Analysis Statistics, performance Testing Equipment Calibration Prototyping Test electronics Simulation Electron scanner Ion profiles Example – SNS Facility

SNS - Native CA Support In LabVIEW When using EPICS IOC only for Channel Access communication  Record processing can be done in LabVIEW To be compatible with all platforms LabVIEW runs on  Windows, Linux, Mac, VxWorks, Pharlap To connect to EPICS clients

LabVIEW CA Server Structure Launch UDP listener (for search requests) Launch TCP listener (for new VC connections) Launch several “threads” for communication Launch one (or several) “threads” for message processing Three queues responsible for data transfer and data locking VC can be in either processing state or in communication state “Records” are guarded differently

Observatory Sciences Programmatic Channel Access Client Functionality equivalent to caget, caput, and camonitor Built on top of TCP and UDP support in LabVIEW Supported data types: double, int32, and string

Questions 38