1 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS Lab #3a State Notation Language.

Slides:



Advertisements
Similar presentations
Epics Configuration Management Steve Hunt v1.0. Goals Maximize control system availability Minimize development cycle time Reduce risk.
Advertisements

1 1999/Ph 514: Working With an IOC EPICS Working with an IOC Marty Kraimer APS.
Experimental Physics and Industrial Control System (EPICS) Sequencer and State Notation Language Tutorial Slides Bob Dalesio, Deb Kerstiens, Rozelle Wright.
1 2003/P571: IOC Development Environment EPICS IOC Development Environment with EPICS on Ubuntu Based on “IOC Development Envirnment” by Andrew Johnson,
AN INTRODUCTION TO PL/SQL Mehdi Azarmi 1. Introduction PL/SQL is Oracle's procedural language extension to SQL, the non-procedural relational database.
IOC Application Development/Debugging Beijing EPICS Seminar Tuesday, 8/ J.Odagiri.
Debugging What can debuggers do? Run programs Make the program stops on specified places or on specified conditions Give information about current variables’
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
Finding, Deploying and Managing EPICS Support Modules Andrew Johnson Computer Scientist, AES Controls.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
CS-502 Fall 2006Project 1, Fork1 Programming Project 1 – Fork.
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
Guide To UNIX Using Linux Third Edition
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Guide To UNIX Using Linux Third Edition
ME 411/511Prof. Sailor Data Acquisition & LabView Lecture goals… –Learn the basics of how to use and modify LabView Virtual Instruments –Become familiar.
1 Chapter 2 ROUTER FUNDAMENTALS By: Tassos Tassou.
CLEO’s User Centric Data Access System Christopher D. Jones Cornell University.
Input/Output Controller (IOC) Overview Andrew Johnson Computer Scientist, AES Controls Group.
ORNL is managed by UT-Battelle for the US Department of Energy EPICS State Notation Language (SNL), “Sequencer” Kay Kasemir, SNS/ORNL Many slides from.
SNL and Sequencer 1 Controls EPICS Training Class EPICS Collaboration Meeting SLAC State Notation Language (SNL) and Sequencer April 23, 2012 Kukhee.
1 1999/Ph 514: State Notation Language EPICS State Notation Language (SNL) Ned D. Arnold APS.
1 2001: Beijing State Notation Language EPICS State Notation Language (SNL) Ned D. Arnold APS (Ron Chestnut SLAC)
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 2 - Welcome Application: Introduction to C++
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 6 Switch Configuration.
SLAC Particle Physics & Astrophysics Tutorial on Programmer’s Development Cycle RCE Training Workshop Jim Panetta, 16 June, 2009.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
The UNIX development environment CS 400/600 – Data Structures.
TANGO on embedded devices: the Bimorph Mirror application case Fulvio Billè Roberto Borghes, Roberto Pugliese, Lawrence Iviani Instrumentation & Measurement.
1 SNL Current State (in transition state) By Matthias Clausen Ron Chestnut.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
Running EPICS on NI CompactRIO Initial Experience Eric Björklund (LA-UR )
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
SNS Integrated Control System A process manager for soft IOCS DH Thompson.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Oct EPICS Meeting, PAL, Korea Control System Studio Training.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Wir schaffen Wissen – heute für morgen Gateway (Redux) PSI - GFA Controls IT Alain Bertrand Renata Krempaska, Hubert Lutz, Matteo Provenzano, Dirk Zimoch.
1 1999/Ph 514: IOC Development Environment EPICS IOC Development Environment Marty Kraimer APS.
UNIX Introduction CSCE 221H Texas A&M University.
XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser Matthias Clausen, DESY XFEL Refrigerator Controls – April CSS Core Applications.
January 2009EPICS Seminar in Indore1 Practice SNL and Sequencer Tatsuro KEK January 2009.
Experience Running Embedded EPICS on NI CompactRIO Eric Björklund Dolores Baros Scott Baily.
3D Puzzle Assignment #1 Programming Language, Spring 2003.
Managed by UT-Battelle for the Department of Energy EPICS Sequencer Kay Kasemir, SNS/ORNL Many slides from Andrew Johnson, APS/ANL Feb
IOC Application Development/Debugging Shanghai EPICS Seminar Tuesday, 8/29 J.Odagiri.
Bit-DSP-MicrocontrollerTMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
EPICS Application Development At The Canadian Light Source Glen Wright.
Chapter 9: Advanced SQL and PL/SQL Guide to Oracle 10g.
Reliability/ Secure IOC / Outlook M. Clausen / DESY 1 CA-Put Logging BurtSave Warm Reboot Matthias Clausen DESY/ MKS.
1 1999/Ph 514: Lab #1 : CA Clients EPICS Lab #1 CA Clients.
Jan Hatje, DESY SNL Editor and Debugger EPICS collaboration meeting SNL Editor and Debugger EPICS collaboration meeting 2008 Shanghai Institute.
Stanford Linear Accelerator Center Michael Zelazny EPICS Collaboration Meeting Dec 3&4, Channel Watcher Bumpless Reboot Replacement Related Web Page:
Dr. Mohamed Ramadan Saady 314ALL CH1.1 Chapter 1: Introduction to Compiling.
January 9, 2001 Router Plugins (Crossbow) 1 Washington WASHINGTON UNIVERSITY IN ST LOUIS Exercises.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
CHAPTER 3 Router CLI Command Line Interface. Router User Interface User and privileged modes User mode --Typical tasks include those that check the router.
State Notation Language and the Sequencer Andrew Johnson APS Engineering Support Division October 2008 INFN EPICS Training.
1 1999/Ph 514: Lab #2 : IOC Database EPICS Lab #2 IOC Database.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Welcome to CSCI 230! Problem Solving using C
Lab 1 introduction, debrief
Chapter Four UNIX File Processing.
Run Java file with Window cmd
APS Controls Marty Kraimer APS.
Chapter 1 c++ structure C++ Input / Output
Primary School Computing
III. Operating System Structures
Presentation transcript:

1 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS Lab #3a State Notation Language

2 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS Lab #3 State Notation Language u Real Life Example #3 : It is apparent from previous studies that the cathode temperature requires stabilization. Although this has been accomplished via closed-loop control from the workstation, a better permanent solution is to implement the closed loop control on the ioc using the sequencer. u Create a sequence program that : u Monitors the state studnt_:OP:stabilizerC u When studnt_:OP:stabilizerC changes from 0 to 1, use the current reading of studnt_:cathodeTempM as the setpoint and maintain that setpoint by varying studnt_:cathodeCurrentC. Proportional Control Algorithm : CTL[T+1] = CTL[T] + (GAIN * (SETPOINT - MEASURED)) u Stop the algorithm when studnt_:OP:stabilizerC goes to 0. u Print messages to studnt_:OP:stabilizerMsg to inform the operator of sequence status. u Test your results using the StripTool.

3 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS SNL Development and Test  A skeleton program has been provided for you in ~/ioc/linac/linacApp/src/stabilizer.st. After editing this file, type gnumake to compile it. u Edit the startup file to remove the # in front of the following lines : #ld < stabilizer.o #seq &stabilizer, "user=studnt_" u The first time the sequence program runs, you will get the following error : 0xnnnnn (stabilizer): 3 of 4 assigned channels have connected  Use seqShow, seqShow, and seqChanShow to debug this problem

4 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS SNL Development and Test u To load a new version of the state program, use the following commands from the ioc console (instead of rebooting) : u seqShow u td u ld < stabilizer.o u seq &stabilizer, "user=studnt_" u Additional helps for the vxWorks shell u Esc k/Esc j - cycles through previous commands u vi commands can be used to edit command line u i - insert; x - delete char u l - move cursor right; h - move cursor left u r - replace single character; R - replace characters

5 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS Lab #3b Development Environment

6 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS Development Environment u Create a new development area as follows : u Execute the commands cd ~/ioc mkdir example cd example /makeBaseApp.pl -t example example /makeBaseApp.pl -i -t example example where = /usr/local/epics/baseR /bin/solaris

7 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS Development Environment u The first command creates: / Makefile config/... exampleApp src/... Db/... u The second command creates: /iocBoot Makefile iocexample/ …

8 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS Development Environment u Each command can be issued multiple times to create additional iocxxx or xxxApp directories u Examine the following … u example/config/RELEASE u exampleApp/src/baseLIBOBJS u exampleApp/src/base.dbd u exampleApp/src/exampleInclude.dbd u exampleApp/src/Makefile.Host u exampleApp/src/Makefile.Vx u exampleApp/Db/dbExample* u exampleApp/Db/ Makefile.Host

9 1999/Ph 514: Lab #3A : SNL Lab#3B : Development Environment EPICS Development Environment u Boot your ioc from this area and familiarize yourself with the example databases and sequence program. u example/iocBoot/iocexample/st.cmd