channel finder

20
Channel Finder Kunal Shroff Ralph Lange

Upload: trella

Post on 23-Feb-2016

73 views

Category:

Documents


0 download

DESCRIPTION

Channel Finder. Kunal Shroff Ralph Lange. Publish/subscribe. Command/response. v3. v4. IOC. IOC. …. IOC. IOC. …. v4. Masar. CA client (JCA/CAJ). pvA client. …. Core Client Technologies. CA. Data Sources. Sim. Test. pvA. AccelUtils. Aggregation. pvManager. Java/Python. - PowerPoint PPT Presentation

TRANSCRIPT

Channel Finder

Channel FinderKunal ShroffRalph Lange1pvManagerGrapheneIOCCA client (JCA/CAJ)CSS CoreOlog IntegrationOlogDataBrowserBOYIOCIOCpvA clientIOCv3v4Publish/subscribeCommand/responsev4Masar...pvASimTestAPILogbookWeb UI and other clientsCACore Client TechnologiesData SourcesAggregationVisualizationvTypesData DefinitionBEASTLog ViewerAccelUtilsWeb based REST servicesCS-StudioChannelFinderAPIJava/PythonCf-updateScripts and utilitiesChannelFinder IntegrationTo begin with this slides gives an overview of the various pieces that represent the architecture of our controls and high level physics applications, tools and services along and their relation ship with each other. // maybeEpics (both v3 and v4) is the control system we useThe core technologies provide the means to efficiently communicate with the Control system CS-Studio is our primary user interface tool2Need for cf-updateHow to add new channels Without having to learn the client apisHow to manage existing channels Orphaned channels Moved channels Automatically handle some attributes/properties of channels hostName iocName

cf-update v2.0.0 The properties currently managed with cf- update hostName iocName pvStatus : Active or InActive time : The last time the above properties where updated Example st.cmdiocInit

dbl > record.dblsystem cp records.dbl /cf-update/$HOSTNAME.$IOCNAME.dblUnder the HoodThe cf_monitor daemon monitors $(CF_UPDATE_DIR) directory and envokes an updare task whenA new *.dbl file is created in the dir An existing *.dbl file is modified The update task handles Uses the filename to obtain the hostName, iocName property values and defines time as the time when the file was modifiedNew channels creates new channels with hostName, iocName properties Orphaned channels the hostName, iocName properties are retained for debugging purpose but the pvStatus is set to inactiveMoved channels ensures that the hostName, iocName properties are update when channels are moved Unchanged channels All other existing properties and tags are left unaffected 6Controls PropertiesNameDescriptionOwnerpriSysprimary systemcontrolspriSysInstprimary system instantcontrolscellthe cell name for the controled device, e.g. C01, C30secSysgirderthe girder name, e.g. G1, G2, G6devTypedevNamectrlDeviceshostNameThe name of the machine hosting the IOC to which this channel belongscf-updateiocNameThe name of the IOC to which this channel belongscf-updatepvStatusThe status depends on whether or not the channel has a IOC assocaited with itcf-updatetimeThe last time the dbl file associated with this pv was readcf-updatePhysics PropertiesNameDescriptionOwnerelemTypethe physics element type: QUAD, SEXT, BPM, HCOR, VCORcf-asd (aphla)elemNamethe element name in latticecf-asd (aphla)elemHandlea read or set type of PV, values are: get/setcf-asd (aphla)elemPositionthe position in lattice, could be end/begin/middle position.cf-asd (aphla)elemLengththe length in lattice.cf-asd (aphla)elemIndexthe index in latticecf-asd (aphla)

Physics applicationsThe High level applications tend to prefer a hierarchical view of the control system where they can group channels by type (such as BPM, horizontal corrector) or locationaccelerator physics high level application APHLA (python)ChannelViewerChannel line plotWaterfall plotChannel Orchestrator

he High level applications tend to prefer a hierarchical view of the control system where they can group channels by type (such as BPM, horizontal corrector) or location. These applications require retrieving a large set of channels value or alarm state. Channel finder applications have simplified user interaction by requiring the user to providing only the channels criteria that they are interested in, such as element type BPM or element Name ICT1, instead of the complete set of channels name.User provides a list of channel names (PVs) with given properties and tags and channel finder service (CFS) [7] stores these information for different applications. The Properties are keyword-value pair data, where the keywords are predefined, such as element name with value P1, element type with value BPM, s Position with value P1 0.5 et. al, whereas the tags are plain strings, such as aphla.sys.LTB, aphla.sys.SR. The channel finder applications use CFS plugin, to query the service for a group of channels based on the set of criteria, which is based on one or any combination of channel name, properties and tags. The channel finder applications client are supported by CSS (such as channel viewer to show a group of PVs with their name, properties and tags, Channel line plot viewer to plot a group of PVs live data, waterfall plot to show time plot of all queried channels ) or python (APHLA: accelerator physics high level application). 9ChannelViewer

Channel Line Plot

Channel Orchestrator

Channel Orchestrator

ChannelFinder ServiceChannelFinder is now a pvmanager service

ChannelFinder in BOY

15ChannelFinder in BOY

16Service Button

Channel Finder service button

Auto-complete

Future plansManage additional properties and tags automaticallyIntegration with NameService/NameValidatorReplace channel widgets with general purpose widgets using pvmanager services and formulaIntegration with MASAR