Date post: | 27-Dec-2015 |
Category: |
Documents |
Upload: | myra-franklin |
View: | 215 times |
Download: | 2 times |
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
EPICS and EDM Overview
Lecture 1Matt Boyes
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
Class OutlineLecture 1
EPICS Channel AccessWhat is a PVLCLS Network DetailsCVS Comments EDM FilesEPICS LCLS Environment Setup
Lecture 2Basics of creating EDM displays
Lecture 3Advance items
EDM LabExercises
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
Channel Access
Channel Access protocol is the way EPICS communicate. Process Variable (PV) data is transferred between Servers and Clients.
CA Servers (IOCs)IOCS (Distributed)
Where PVs liveDatabaseSubroutinesSequence
ClientsEDM DisplaysStripToolProbeChannel ArchiverMatlabetc
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
EPICS CA Overview
Client StripTool Probe EDM Matlab Archiver
Server IOC IOC
Meter Power Supply Camera
SIOC
Channel Access
Based On Getting Started with EPICS Lecture Series “Introduction to Channel Access Clients”
Kenneth Evans, Jr.
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
Search and Connect Procedure
Client StripTool Probe EDM Matlab Archiver
Server IOC IOC
Meter Power Supply Camera
IOC
3. TCP Connection
Let’s talk !
1. UDP Broadcast Sequence
Who has it ?
Check Check CheckCheck
2. UDP Reply
I have it !
IOC
Based On Getting Started with EPICS Lecture Series “Introduction to Channel Access Clients”
Kenneth Evans, Jr.
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
What is EPICS?Process Variable
A Process Variable (PV) is a named piece of data associated with the machine (e.g. status, readback, setpoint, parameter)
Examples of PV names and values:
S1:VAC:reading 3.2e-08 torrLINAC:BPM4:xPosition -0.323 mmBOOSTER:gateValvePosition ‘OPEN’S3:DIPOLE:PS:setPoint 123.4 AmpsAPS:Mode ‘Stored Beam’BL3:HISTOGRAM {3, 8, 1, 2, 56, 44, 32, 43, 3, 5, 1}
Getting Started with EPICS Lecture SeriesIntroductory Session I
Ned Arnold
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
What is EPICS?
Getting Started with EPICS Lecture SeriesIntroductory Session I
Ned Arnold
A Process Variable is a named piece of data with a set of attributes
Examples of Attributes:
Alarm Severity (e.g. NO_ALARM, MINOR, MAJOR, INVALID)
Alarm Status (e.g. LOW, HI, LOLO, HIHI, READ_error)
Timestamp
Number of elements (array)
Normal Operating Range
Control Limits
Engineering Unit Designation (e.g. degrees, mm, MW)
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
LCLS Controls System
LAVC
CA
SCCS PUBSAFS NFS
CVS
Staging System(backup)
IOCs lcls-opi03 lcls-opi04
lcls-opi01
lcls-srv01
lcls-opi02 mccfs2OPIs
lcls-daemon1 lcls-archeng
Filtering Router
PEPpx00
DMZ
lcls-prod02lcls-prod01 lcls-archsrv
LCLSDEVlcls-dev2 IOCs
WEBmccas0 NISmccora2
mccelogsunsrv00
lcls-builder
NIS WEB
REMEDY(Artemis)
Ernest and Jingchen, 04/15/08
desktops
opi00nas03
physics-elog
px01 mccas1
MCC
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
Important Network DetailsLCLS Controls System
LAVC
CA
SCCS PUBSAFS NFS
CVS
Staging System(backup)
IOCs lcls-opi03 lcls-opi04
lcls-opi01
lcls-srv01
lcls-opi02 mccfs2OPIs
lcls-daemon1 lcls-archeng
Filtering Router
PEPpx00
DMZ
lcls-prod02lcls-prod01 lcls-archsrv
LCLSDEVlcls-dev2 IOCs
WEBmccas0 NISmccora2
mccelogsunsrv00
lcls-builder
NIS WEB
REMEDY(Artemis)
Ernest and Jingchen, 04/15/08
desktops
opi00nas03
physics-elog
px01 mccas1
MCC
• LCLS DEV clients can not access CA Network PVs (and vise versa)• LCLS DMZ clients have read only access to CA Network PVs• EPICS Environment automatically setup for group accounts on CA Network Computers
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
Comments on CVSCVS is the LCLS Version Control
Keeps track of files changes
No release scripts yet to move files from DEV to Prod
Developers need to manually update DEV and Prod files.
Need to be careful when releasing
Only System Engineers should release files for their subsystem
Will avoid conflicts
System Engineers can mergechanges
Non System Engineers Should:1. CVS Check out or copy files
locally to users sandbox
2. Make change/fixes, Test
3. Contact System Engineer to release and merge into CVS
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
EDM File LocationsPaths different on dev and productions machines
Use $EDM environment variable
LCLSHOME Files are in “lcls” directory
Subsystems files not in LCLSHOME framehave their own directory
EDM always checks path where EDM was started from first before check $EDMfor display files
Makes development easier
EPICS and EDM Overview
03 October 2008 Matt Boyes [email protected]
User Environment SetupepicsReset.bash
Must be in bash shellChannel Access settingsEDM configuration and display filesMany more items
LCLS EPICS Development Environment Setup on Linux
Login to lcls-dev2 with$ ssh -X -Y [email protected]
Find out what shell you are running by typing echo $SHELL. Your shell will be either tcsh or bash.ex:$ echo $SHELL /bin/bash (I am running bash.)
If you are using tcsh, type this command to enter the bash shell before proceeding:$ bash
If you are using bash, type this command:$ source /afs/slac/g/lcls/epics/setup/epicsReset.bash
As an alternative you can skip the above step and instead copy the following file to your home directory. This file includes the command to source the setup script listed in the above. The advantage is that this script is executed automatically when you type bash.cp ~luchini/.bashrc .