1 2003/P571: Lab #2 : IOC Database EPICS Lab #2 IOC Database.

Slides:



Advertisements
Similar presentations
Someone hands you a a diskette that has data about schools in the City of Cleveland. They tell you that the school file is in a a dBase format. How do.
Advertisements

Access Manual 4 By Elham S.Khorasani Ismail Guneydas Dhawala Kovuri.
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Using Macros and Visual Basic for Applications (VBA) with Excel
XP New Perspectives on Microsoft Excel 2003, Second Edition- Tutorial 8 1 Microsoft Office Excel 2003 Tutorial 8 – Developing an Excel Application.
*** CONFIDENTIAL *** © Toshiba Corporation 2008 Confidential Wallboards.
EPICS EPICS Seminar 2009, RRCAT, Indor Masanori Satoh, KEK Linac, Jan Masanori Satoh/ KEK, Jan , 2009 for EPICS seminar at RRCAT, Indore Database.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Introduction To Form Builder
Introduction To Form Builder
1 CA203 Presentation Application Customizing PowerPoint Lecture # 15.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Macros and VBA A macro is a set of instructions that tells Excel which commands to execute.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Database Design with VisualDCT Nicholas Di Monte.
KJOlinski.com - RapidHMI INTRODUCING RapidHMI AND PLCExplorer.
Managed by UT-Battelle for the Department of Energy EPICS Database … in 1 hour?! Kay Kasemir, SNS/ORNL Many slides from Andrew Johnson, APS/ANL, Jan
Creating a Web Site to Gather Data and Conduct Research.
MLC CAD Systems Introducing… Presented by: John McCord How to customize.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
Database Design with VisualDCT Nicholas Di Monte.
Spreadsheets in Finance and Forecasting Presentation 9 Macros.
CSS/417 Introduction to Database Management Systems Workshop 2.
EPICS Overview 25 August 2009 Matt Boyes EPICS Overview Lecture 1 Matt Boyes.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
2. Recording a Macro. Macro Recording Select Record Macro from the Macro file menu and the dialog box opposite will appear Your macro will require a name.
Execute Workflow. Home page To execute a workflow navigate to My Workflows Page.
1 1999/Ph 514: EPICS Database II EPICS EPICS Database II Ned D. Arnold APS.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 8 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 8 Creating.
DAQ Control GSI, Aug 2005Hans G. Essel CBM - DAQ Control1 MBS monitor (FOPI) (J.Adamczewski, M.Stockmeier)
Microsoft PowerPoint Tutorial Created by L. George 2006.
Microsoft Access 2010 Chapter 10 Administering a Database System.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Integrating EPICS and LabVIEW on Windows using DCOM Freddie Akeroyd ISIS Computing Group.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
Overview of MSWS Control of 212-LC July 15, 2006.
Chapter 23. Copyright 2003, Paradigm Publishing Inc. CHAPTER 23 BACKNEXTEND 23-2 LINKS TO OBJECTIVES Record, Run, Pause, and Delete Macros Record, Run,
CS 281 – Fall 2015 Lab 4 Parametric Query and Forms in MS Access.
Managed by UT-Battelle for the Department of Energy EPICS Database Kay Kasemir, SNS/ORNL Many slides from Andrew Johnson, APS/ANL Sept
Aug/20/2002EPICS Progress at IHEP1 BEPCII Control Group Presented by Ge Lei Aug/20/2002.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Copyright  Oracle Corporation, All rights reserved. 6 CMIS Powell Oracle Designer: Prototype Application Generation CMIS Powell.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
MATLAB and SimulinkLecture 61 To days Outline Graphical User Interface (GUI) Exercise on this days topics.
EPICS Records J. Frederick Bartlett Fermilab June 1,1999.
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
Channel Access Security 2006 O AK R IDGE N ATIONAL L ABORATORY U. S. D EPARTMENT OF E NERGY 2 Channel Access Security  The IOC Application.
EDD/DM Changes for release 2.4 Deb Kerstiens September 4, 1997.
Macros in Excel Using VBA Time Required – 5 hours.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
Allen-Bradley PLC-5 Control With A ‘Soft’ IOC 1 Jim Stevens APS Controls Group Epics Collaboration Meeting May 20, 2015 Rick Putnam APS MOM Group.
1 1999/Ph 514: Lab #2 : IOC Database EPICS Lab #2 IOC Database.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
S15-1 ADM , Section 15, August 2005 Copyright  2005 MSC.Software Corporation SECTION 15 DIALOG BOX BUILDER.
EPICS Collaboration Meeting, Lund, Sweden, May 2016 © 2016, ITER Organization Page 1 IDM UID: XXXXXX Disclaimer: The views and opinions expressed.
Excel Tutorial 8 Developing an Excel Application
VAB™ for INFINITY Tutorial
Creating Custom Reports, Macros, and Switchboards
PowerPoint Activity 5: To Be Determined…
Introduction to Multilines
Lesson 6: Epic Appointment Scheduling Referrals
Lesson 6: Epic Appointment Scheduling Referrals
Creating a simple query in the Design View
EPICS APPLICATION DEVELOPMENT
Selenium IDE Installation and Use.
Executive Reports, Instructions and Documentation
Presentation transcript:

1 2003/P571: Lab #2 : IOC Database EPICS Lab #2 IOC Database

2 2003/P571: Lab #2 : IOC Database EPICS Lab #2 Outline 1.Look at the example database used for Lab #1 2.Learn how to use the vdct database editor 3.Create some new records and functionality 4.Run the IOC and load the new records 5.Use cau, probe or edm to test the new functionality 6.Repeat steps 3-5 until it works

3 2003/P571: Lab #2 : IOC Database EPICS Examine yesterday’s database  Use the linux more command (or your favorite text editor) to look at the file ~/example/db/dbExample1.db  Work out how the $(user):calcExample record field values configure the record to generate the sawtooth pattern we saw yesterday  Look at the file ~/example/dbd/example.dbd  Start the IOC by typing cd ~/example/iocBoot/iocexample../../bin/linux-x86/example st.cmd  Look at the commands it executed from the st.cmd file, and what messages were reported  Type help at the epics prompt for a list of commands

4 2003/P571: Lab #2 : IOC Database EPICS Example1.db record(ai, "$(user):aiExample") { field(DESC, "Analog input") field(INP, "$(user):calcExample.VAL NPP NMS") field(EGUF, "10") field(EGU, "Counts") field(HOPR, "10") field(LOPR, "0") field(HIHI, "8") field(HIGH, "6") field(LOW, "4") field(LOLO, "2") field(HHSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(LLSV, "MAJOR") }

5 2003/P571: Lab #2 : IOC Database EPICS Example1.db (cont’d) record(calc, "$(user):calcExample") { field(DESC, "Counter") field(SCAN,"1 second") field(FLNK, "$(user):aiExample") field(CALC, "(A<B)?(A+C):D") field(INPA, "$(user):calcExample.VAL NPP NMS") field(INPB, "9") field(INPC, "1") field(INPD, "0") field(EGU, "Counts") field(HOPR, "10") field(HIHI, "8") field(HIGH, "6") field(LOW, "4") field(LOLO, "2") field(HHSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(LLSV, "MAJOR") }

6 2003/P571: Lab #2 : IOC Database EPICS How to edit databases in vdct  You can either create a new database file for your PVs or add them to the file ~/example/db/dbExample1.db  To start vdct: cd ~/example vdct &  Select a database definition file: In the dialog box, select and open dbd/example.dbd  To modify the existing db/dbExample1.db file: Use the File/Open menu item, or the left-most toolbar button  Edit away (see Help Topics menu item or vdct manual for keys)  Save the edited (or new) database... From file menu, pick Save or Save as../db/_.db  If you created a new database, edit ~/example/iocBoot/iocexample/st.cmd and add a line to load your new database.

7 2003/P571: Lab #2 : IOC Database EPICS Suggested Database Changes  バイナリ入力レコードを追加し、 caclExample レコードの カウント動作を停止・継続を制御する。  How many other ways can you devise of controlling whether calcExample cycles or not?  Adding new records is allowed and even encouraged  Add another binary input record, and some logic to only permit oscillation when both records are “On”  Extend this so that the sawtooth only stops after the permit has been withdrawn once its value reaches zero  Replace the sawtooth generator with one that is smoother (i.e. doesn't just go up in integer steps)

8 2003/P571: Lab #2 : IOC Database EPICS Additional Database Exercises  Add the following line to ~/ioc/iocBoot/iocexample/st.cmd asSetFilename("rules.cas")  Change studnt_:calcExample.ASG to SUPERUSER.  Add other security conditions as desired. UAG(users) {studnt_} ASG(DEFAULT) { RULE(1, READ) RULE(1, WRITE) } ASG(SUPERUSER) { RULE(1, READ) RULE(1, WRITE) { UAG(users) }  Implement Channel Access Security in your IOC so that only studnt_ can modify studnt_:calcExample.  Create an access security configuration file named rules.cas in ~/ioc/iocBoot/iocexample