+ All Categories
Home > Documents > ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1,...

ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1,...

Date post: 03-Jan-2016
Category:
Upload: audrey-kelly
View: 218 times
Download: 2 times
Share this document with a friend
58
S. Khomo utnikov DDC Tutorial 1 ATLAS ATLAS DCS DCS DAQ – DCS DAQ – DCS Communication Communication Tutorial Tutorial ( DDC v. 4.1, online-00-21-02 ( DDC v. 4.1, online-00-21-02 ) ) 58 slides with comments 58 slides with comments printing note pages before looking the printing note pages before looking the presentation is recommended presentation is recommended
Transcript
Page 1: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 1

ATLAS ATLAS DCSDCS

DAQ – DCS DAQ – DCS CommunicationCommunication

TutorialTutorial( DDC v. 4.1, online-00-21-02 )( DDC v. 4.1, online-00-21-02 )

58 slides with comments58 slides with commentsprinting note pages before looking the presentation is printing note pages before looking the presentation is

recommendedrecommended

Page 2: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 2

ATLAS ATLAS DCSDCS ContentContent

Introduction: DDC functionalityIntroduction: DDC functionality Data Transfer DCS Message Transfer TDAQ Command Transfer

System requirementsSystem requirements User toolsUser tools

To run and test the system To use DDC by TDAQ applications

DDC view in configuration DBDDC view in configuration DB TrainingTraining

Configuring DDC Running play_daq Testing DDC

Page 3: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 3

ATLAS ATLAS DCSDCS DDC Data Transfer DDC Data Transfer (functionality)(functionality)

Transfer for TDAQ Information Service any DCS data Transfer for TDAQ Information Service any DCS data (PVSS’ DPE) (PVSS’ DPE) on changeon change

Data structures -- by leaf elements Transfer to PVSS database any data from TDAQ IS Transfer to PVSS database any data from TDAQ IS

service service on changeon change PVSS DP should exist and be compatible

================ To be defined by configuration with To be defined by configuration with PVSSPVSS DP names DP names

usedused Configuration of DCS => DAQ data transfer can be Configuration of DCS => DAQ data transfer can be

changed during run time with a dedicated DDC APIchanged during run time with a dedicated DDC API

Handle asynchronous TDAQ requests for single read Handle asynchronous TDAQ requests for single read DCS data (to IS)DCS data (to IS)

Any PVSS DPE or list of DPE No preliminary configuring required Supported by DDC API

Page 4: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 4

ATLAS ATLAS DCSDCS

TDAQ request for DCS dataTDAQ data for DCS on changeDCS data for TDAQ on change

DDC Data Transfer DDC Data Transfer (interfaces)(interfaces)

Subscribe

Notify

Get data

Set data

DCS PVSS Application

Online Information

Service

DDC Data Transfer

Notify

Subscribe

Get data

Set data

TDAQ WorldDCS World

Page 5: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 5

ATLAS ATLAS DCSDCS DDC Data Transfer DDC Data Transfer (compatibility)(compatibility)

PVSS type ISType::Basic types C/C++ types

bit Boolean bool

bit32 U32 unsigned int

char S8, U8 char, unsigned char

int S16, S32 short, int

unsigned int U16, U32 unsigned short, unsigned int

float Float, Double float, double

string String string, char[]

Simple data types

Data structures:

Order and types of PVSS structure nodes must be compatible with those of IS record to be transferred from DAQ to DCS

Page 6: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 6

ATLAS ATLAS DCSDCS DDC Message Transfer DDC Message Transfer

(functionality)(functionality)

Transfer PVSS’ alert messages for TDAQ’ Error Transfer PVSS’ alert messages for TDAQ’ Error reporting servicereporting service

Either ALL or originated from specified DP set

Transfer for TDAQ’ ERS specified DP of type text Transfer for TDAQ’ ERS specified DP of type text on change on change (to be interpreted like messages)(to be interpreted like messages)

================ To be specified by configuration To be specified by configuration with with PVSSPVSS DP DP

names usednames used

Page 7: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 7

ATLAS ATLAS DCSDCS DDC Message Transfer DDC Message Transfer

(interfaces)(interfaces)

DCS PVSS Application

Online Error

Reporting

DDC Message Transfer

Notify

Subscribe

Send message

TDAQ WorldDCS World

Page 8: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 8

ATLAS ATLAS DCSDCS DDC Message Transfer DDC Message Transfer

(severity)(severity)

PVSS alert priority conversion:

Priority in PVSS application Message severity

p ≤ 10 MRS_INFORMATION

10 < p ≤ 20 MRS_DIAGNOSTIC

20 < p ≤ 50 MRS_WARNING

50 < p ≤ 80 MRS_ERROR

80 < p MRS_FATAL

Text DP:

Severity is to be defined by configuration

Page 9: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 9

ATLAS ATLAS DCSDCS What is TDAQ Command for DCS?What is TDAQ Command for DCS?

DCS is the only system that defines what is the set DCS is the only system that defines what is the set of commands may be launched by TDAQ and how of commands may be launched by TDAQ and how those commands will be executedthose commands will be executed

DCS developer has to implement command DCS developer has to implement command facilities in PVSS projectfacilities in PVSS project

TDAQ may define parameter values, initiate TDAQ may define parameter values, initiate command, declare timeout and acceptcommand, declare timeout and accept feedbackfeedback

(via DDC Command Transfer facility)(via DDC Command Transfer facility)

Page 10: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 10

ATLAS ATLAS DCSDCS Command Representation in DCSCommand Representation in DCS

Command Name

bool trigger

string parameters

int response

DPE structure DdcCommand PVSSPVSS Script Script

To start on To start on CommandNameCommandName..triggertrigger = = truetrue

To executeTo execute controlcontrol actions actions (using (using CommandNameCommandName.parameters.parameters))

To set To set CommandNameCommandName..responseresponse byby final status of command executionfinal status of command execution

optional others

Note:Note: DdcCommand DPE can be a sub-structure of a DP typeDdcCommand DPE can be a sub-structure of a DP type Three first leaves are mandatory (with the names fixed), while Three first leaves are mandatory (with the names fixed), while

any additional sub-structures or leaves may be there any additional sub-structures or leaves may be there

Page 11: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 11

ATLAS ATLAS DCSDCS DDC Command Transfer DDC Command Transfer

(functionality)(functionality) Transfer for DCS commands of TDAQ Transfer for DCS commands of TDAQ run controlrun control

FSM transitions FSM transitions (with feedback)(with feedback)

================ To be defined by configurationTo be defined by configuration

Transfer asynchronous (Transfer asynchronous (non-transitionnon-transition) commands ) commands of TDAQ applications to control DCS of TDAQ applications to control DCS (with feedback)(with feedback)

================ Can be either defined in configuration DB or not Can be either defined in configuration DB or not Supported by APISupported by API Does not affect state nor transitions of DAQ run Does not affect state nor transitions of DAQ run

control FSMcontrol FSM

Page 12: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 12

ATLAS ATLAS DCSDCS

Transfer Run control commandTransfer non-transition command

DDC Command Transfer DDC Command Transfer (interfaces)(interfaces)

DCS PVSS Application

Parent Run Controller

DDC Command Transfer

Notify

Subscribe

Subscribe

RC-interface

Notify

Set data

RunCtrl Information

Server

RC-interface

TDAQ WorldDCS World

Page 13: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 13

ATLAS ATLAS DCSDCS

System RequirementsSystem Requirements (Linux computer where DDC is to be running)(Linux computer where DDC is to be running)

Operating systemOperating system Linux RH 7.3

SoftwareSoftware default C++compiler gcc 2.95 release online-00-21-02, configuration i686-rh73-gcc295-opt PVSS version 3.0

+ symbolic links in $PVSS_PATH/bin unifying PVSS library names and pointing to the libraries of that patch like

libManager.so ../api/lib.linux.rtti/libManagerV30_148.so

Environment to set/modifyEnvironment to set/modify

PVSS_PATH - Root directory of PVSS installation

LD_LIBRARY_PATH = $PVSS_PATH/bin:$LD_LIBRARY_PATH

TDAQ_DB_DATA – full path for Configuration DB of your working partition

Page 14: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 14

ATLAS ATLAS DCSDCS

User’s Tools User’s Tools (1)(1)to manage DDCto manage DDC

ConfiguringConfiguringDDC configuration editor

OR

oks_data_editor Provided by Online software XML template files

ddc_test.data.xml - Definitions of DDC segment

ddc_playdaq.data.xml - Physics partition references to DDC

RunningRunning play_daq script (of Online software) for control Physics partition also

controls DDC applications

Page 15: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 15

ATLAS ATLAS DCSDCS

User’s Tools User’s Tools (2)(2)to manage DDCto manage DDC

Test applicationsTest applications ddc_daqsim sends (on behalf of TDAQ) any data for DDC,

issues request for DCS data, extends/reduces list of DCS data to be transferred for TDAQ on

change ddc_msg_receiver receives DCS messages, then prints

ddc_sendcmd sends non-transition commands for DDC andprints response

DdcW2kTest PVSS test project for W2K/WXP.Contains DPs to be transferred for TDAQ & accepted from there by DCS; Has DdcCommand datapoint defined

DDC users DDC users have tohave to bebe acquainted with acquainted with PVSS Online Software’ IS, ERS, RC, play_daq concepts Online Software’ Configuration DB concept and techniques (only for

configuring DDC with oks_data_editor)

Page 16: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 16

ATLAS ATLAS DCSDCS

User’s Tools User’s Tools (3)(3)to use DDCto use DDC at TDAQ domainat TDAQ domain

To publish data, to receive DCS data from ISTo publish data, to receive DCS data from IS IS’ API provided by Online software Data object templates header file ddc/DdcData.hxx)

To send request for DCS dataTo send request for DCS data DDC’ API libddc.so (header file ddc/DdcRequest.hxx)

To change configuration of DCS-to-DAQ data transferTo change configuration of DCS-to-DAQ data transfer DDC’ API libddc.so (header file ddc/DdcRequest.hxx)

To receive DCS messagesTo receive DCS messages ERS’ (MRS) API provided by Online software IGUI provided by Online software

To send commands for DCSTo send commands for DCS Run control commands – like for any Run Controller (Online software) DDC’ API for non-transition commands - libddc.so (header file

ddc/DdcCommander.hxx)

Page 17: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 17

ATLAS ATLAS DCSDCS DDC in Configuration DB DDC in Configuration DB

(top layer)(top layer)

Segments

Physics: Partition

DDC : Segment

Online Schema

File

DDC Schema File

ddcDt1:DdcDtApplication ddcMt1:DdcMtApplication ddcCt1:DdcCtApplication

Contains

IsControlledBy

Name NameName

Name ddc_test

Other Segments

Segments

User’s ddc.data.xml

Physics.data.xml

XXX:Environment

Needs Environment

Computer

Default Host

Include File

Include File

Page 18: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 18

ATLAS ATLAS DCSDCS DDC in Configuration DB DDC in Configuration DB

(target layer)(target layer)

PvssWorkstation

ddcDt1:DdcDtApplication ddcMt1:DdcMtApplication ddcCt1:DdcCtApplication

DCSStationToConnect

string Name string Namestring Name

User’s ddc.data.xmlComputer

HW_Tag i686-rh73

RunsOn

string ISServerlist<string> Datapoints

DdcDataTargetList

list<string> Datapoints

DdcTargetList

string PvssDpeNamestring MessageSeverity

DdcTextMessage

string RunControlTransitionstring DcsCommandstring CommandParametersunsigned int Timeout

DdcCommand

DcsExportDcsImport

0..N0..N

DcsAlarms

0..N

DcsTextMessages

0..N

Transition Commands

0..N

Physics.data.xml

Alarm:PvssDatapoint

string DpNameint PollInterval

detectorAlarmDef

0..1

Page 19: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 19

ATLAS ATLAS DCSDCS

TrainingTraining

PVSS Test applicationPVSS Test application

Configuring DDCConfiguring DDC

Starting DDC withStarting DDC with play_daqplay_daq

Testing DDCTesting DDC

Page 20: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 20

ATLAS ATLAS DCSDCS DDC Test ProjectDDC Test Project

Project for MS Windows 2000 / Windows XPProject for MS Windows 2000 / Windows XP Slightly modified project of PVSS “Getting Started” course Comprises

DP to be transferred for TDAQ (float, bool, structure including dynamic and fixed length arrays)

DP to get the TDAQ data (int) DP of the type DdcCommand to execute DAQ commands DP for Not_Ready_for_DAQ flag (bool)

Does not require any hardware

Available for download asAvailable for download as/afs/cern.ch/atlas/project/tdaq/dcs/ddc/ddcW2kTest.zip

See notes for this slide for detailsSee notes for this slide for details

Page 21: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 21

ATLAS ATLAS DCSDCS

Create Configuration Create Configuration Database of Working PartitionDatabase of Working Partition

First setup Online software by command line

source <TDAQ_INST_PATH>/setup.[c]shand set

PVSS_PATH = <Root directory of PVSS installation>

Then copy, perhaps with renaming (do not rename the files for the DDC testing purpose), the database template files into your working directory

cp $TDAQ_INST_PATH/share/data/ddc/ddc_playdaq.data.xml demo-partition.data.xml

cp $TDAQ_INST_PATH/share/data/ddc/ddc_test.data.xml ddc.data.xml

and make these files readable for everybody and writable for yourself

Page 22: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 22

ATLAS ATLAS DCSDCS Root Window ofRoot Window of

oks_data_editoroks_data_editorSet

TDAQ_DB_DATA = <Full path for demo_partition.data.xml>

Then call oks_data_editor $TDAQ_DB_DATA &

Close template file and open its copy to be edited

Page 23: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 23

ATLAS ATLAS DCSDCS

oks_data_editor:oks_data_editor: edit edit reference to data filereference to data file

1

2 3

The same window after steps 2 and 3

Page 24: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 24

ATLAS ATLAS DCSDCS oks_data_editor: oks_data_editor: change change

name of top-level partitionname of top-level partition

Page 25: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 25

ATLAS ATLAS DCSDCS oks_data_editor: oks_data_editor: edit edit

workstation definitionsworkstation definitions

12

3

Page 26: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 26

ATLAS ATLAS DCSDCS oks_data_editor: oks_data_editor: create create

DdcDataTargetListDdcDataTargetList1

2

Template object

Cору

Target list of datapoints to be transferred

3

Page 27: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 27

ATLAS ATLAS DCSDCS

oks_data_editor: oks_data_editor: create create DdcDtApplicationDdcDtApplication (1/2) (1/2) 1

2

Target lists of datapoints to be transferred

4

3

Page 28: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 28

ATLAS ATLAS DCSDCS

oks_data_editor: oks_data_editor: create create DdcDtApplicationDdcDtApplication (2/2) (2/2)

1

3

2

5

4

Page 29: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 29

ATLAS ATLAS DCSDCS oks_data_editor: oks_data_editor: create create

DdcTextMessage objectsDdcTextMessage objects1

2

Template object

Cору

DCS message to be transferred

3

Page 30: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 30

ATLAS ATLAS DCSDCS oks_data_editor: oks_data_editor: create create

DdcTargetList (alarms)DdcTargetList (alarms)

1

2

Template object

Cору

New DCS alarm list

Page 31: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 31

ATLAS ATLAS DCSDCS

oks_data_editor: oks_data_editor: create create DdcMtApplicationDdcMtApplication (1/2) (1/2)

1

2

4

3

5

Page 32: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 32

ATLAS ATLAS DCSDCS

oks_data_editor: oks_data_editor: create create DdcMtApplicationDdcMtApplication (2/2) (2/2)

1

3

2

5

4

Page 33: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 33

ATLAS ATLAS DCSDCS oks_data_editor: oks_data_editor: create create

DdcCommandDdcCommand definitions definitions1

2

Template object

Cору

DCS run control command

3

5

4

Available DDC transitions

loadconfigprepareRunstartTriggercheckpointpauseresumestopTriggerstopFEstopDCstopEFstopRecordingunconfigunloadfinalresetclearupdateRunParam

Page 34: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 34

ATLAS ATLAS DCSDCS oks_data_editor: oks_data_editor: define define

Not_Ready_for_DAQ flagNot_Ready_for_DAQ flag 1

2

PvssDatapoint object template

Cору

DCS flag Not_ready_for_DAQ

3

Page 35: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 35

ATLAS ATLAS DCSDCS

oks_data_editor: oks_data_editor: create create DdcCtApplicationDdcCtApplication (1/2) (1/2) 1

2

4

3

5

Page 36: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 36

ATLAS ATLAS DCSDCS

oks_data_editor: oks_data_editor: create create DdcCtApplicationDdcCtApplication (2/2) (2/2)

1

3

2

5

4

Page 37: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 37

ATLAS ATLAS DCSDCS

oks_data_editor: oks_data_editor: check controller check controller and applicationsand applications of segment of segment

1

2

Page 38: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 38

ATLAS ATLAS DCSDCS And eventually…And eventually…

Save the databases of both Save the databases of both partitionpartition and and ddcddc segmentsegment in extended format in extended format

Page 39: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 39

ATLAS ATLAS DCSDCS PVSS Test Application PanelPVSS Test Application Panel

Page 40: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 40

ATLAS ATLAS DCSDCS play_daqplay_daq Call and IGUICall and IGUI

export TDAQ_DB_DATA= <your partition DB>

Generic call: play_daq <Partition Name>

For the test: play_daq integ_ddc_test

Page 41: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 41

ATLAS ATLAS DCSDCS Booting PartitionBooting Partition

Page 42: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 42

ATLAS ATLAS DCSDCS

Loaded & Configured Loaded & Configured PartitionPartition

Page 43: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 43

ATLAS ATLAS DCSDCS Results ofResults of configconfig TransitionTransition

Page 44: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 44

ATLAS ATLAS DCSDCS Transferring DCS Alert Transferring DCS Alert

Message to DAQMessage to DAQ

Page 45: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 45

ATLAS ATLAS DCSDCS Partition Is RunningPartition Is Running

Page 46: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 46

ATLAS ATLAS DCSDCS Not_Ready_for_DAQ Flag Not_Ready_for_DAQ Flag (1/2)(1/2)

Page 47: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 47

ATLAS ATLAS DCSDCS Not_Ready_for_DAQ Flag Not_Ready_for_DAQ Flag

(2/2)(2/2)

Page 48: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 48

ATLAS ATLAS DCSDCS DCS text message for DAQDCS text message for DAQ

Page 49: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 49

ATLAS ATLAS DCSDCS

is_monitoris_monitor ViewView(Check Data Transfer)(Check Data Transfer)

Page 50: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 50

ATLAS ATLAS DCSDCS

Simulating DAQ Data TransferSimulating DAQ Data Transfer (1/3)(1/3)

DDC utility DDC utility ddc_daqsimddc_daqsim to simulate to simulate TDAQ data transfer, requests for read TDAQ data transfer, requests for read or subscribe/unsubscribe DCS dataor subscribe/unsubscribe DCS data

Usage: ddc_daqsim -p partition-name -n application-Usage: ddc_daqsim -p partition-name -n application-name -C config-filename -C config-file

Options/Arguments:Options/Arguments:

-p partition-name partition to work in.-p partition-name partition to work in.

-n application-name name of application.-n application-name name of application.

-C config-file -C config-file path of configuration path of configuration file file

((daqsim.config)daqsim.config)..

Configuration file Configuration file ((daqsim.configdaqsim.config))

[DAQ-to-DCS][DAQ-to-DCS]

IS_SERVER = RunParamsIS_SERVER = RunParams

DAQ1.statusDAQ1.status

DAQ2.statusDAQ2.status

[DAQ-REQUESTS][DAQ-REQUESTS]

IS_SERVER = RunCtrlIS_SERVER = RunCtrl

Page 51: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 51

ATLAS ATLAS DCSDCS

Simulating DAQ Data TransferSimulating DAQ Data Transfer (2/3)(2/3)

[vhom@srvlib data]$ ddc_daqsim -p integ_ddc_test -n MyDaq -C $HOME/working/data/daqsim.configMyDaq_INFO: DAQ request is configuredDP name DAQ1.statusAllowed type codes are the following:

1- bool, 2 - char, 3 - unsigned char, 4 - short,5- unsigned short, 6 - int, 7 - unsigned int, 8- float, 9 - double, 10 - string, 13 - struct

DAQ1.status.type ( 1-10, 13 ): 6DAQ1.status.dimension ( >0 ): 1Making initial value of DAQ1.statusType value <int>: 1Check-in of RunParams.DAQ1.statusDP name DAQ2.statusAllowed type codes are the following:

1- bool, 2 - char, 3 - unsigned char, 4 - short,5- unsigned short, 6 - int, 7 - unsigned int, 8- float, 9 - double, 10 - string, 13 - struct

DAQ2.status.type ( 1-10, 13 ): 6DAQ2.status.dimension ( >0 ): 1Making initial value of DAQ2.statusType value <int>: 2Check-in of RunParams.DAQ2.status

############# Simulation ##################### of DAQ parameter export ######### and issuing requests for DCS data #########################################

DAQ parameters are being simulated:1. DAQ1.status Type: int Dimension: 12. DAQ2.status Type: int Dimension: 1DCS data requests are being simulated3. READ_DATA_REQUEST4. SUBSCRIBE_REQUEST5. UNSUBSCRIBE_REQUEST

Type a parameter number : 1Preparing new value of DAQ1.statusType value <int>: 0Check-in of RunParams.DAQ1.status

Type a parameter number : 2Preparing new value of DAQ2.statusType value <int>: 0Check-in of RunParams.DAQ2.status

Page 52: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 52

ATLAS ATLAS DCSDCS

Simulating DAQ Data Transfer Simulating DAQ Data Transfer - Results- Results (3/3) (3/3)

Page 53: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 53

ATLAS ATLAS DCSDCS

Simulating DAQ Data Request Simulating DAQ Data Request (1/2)(1/2)

Type a parameter number : 3Type the request for DCS data: RunParams.fdp.fdaMore data: .Request accepted: RunParams.fdp.fda

Page 54: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 54

ATLAS ATLAS DCSDCS

Simulating DAQ Data Request Simulating DAQ Data Request - Results- Results (2/2) (2/2)

Page 55: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 55

ATLAS ATLAS DCSDCS

Subscribing/Unsubscribing Subscribing/Unsubscribing DAQ DataDAQ Data

Type a parameter number : 4Type a subscription request for DCS data: RunParams.chdp.chaMore data: .Request accepted: RunParams.chdp.cha

Type a parameter number : 5Type a subscription request for DCS data: v1.response.status.openedMore data: .Request accepted: v1.response.status.opened

Type a parameter number : -1[vhom@srvlib data]$

Page 56: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 56

ATLAS ATLAS DCSDCS

Testing Non-transition Testing Non-transition CommandCommand (1/2) (1/2)

DDC utility ddc_sendcmd to issue non-transition command

Usage: ddc_sendcmd -p partition-name -c Usage: ddc_sendcmd -p partition-name -c controller-id [-M controller-id] [-N controller-controller-id [-M controller-id] [-N controller-id] [-O controller-id]id] [-O controller-id]

Options/Arguments:Options/Arguments: -p partition-name partition to work in.-p partition-name partition to work in. -c controller-id controller to work with-c controller-id controller to work with -M controller-id controller to work with-M controller-id controller to work with -N controller-id controller to work with-N controller-id controller to work with -O controller-id controller to work with-O controller-id controller to work with

[vhom@srvlib vhom]$ ddc_sendcmd -p integ_ddc_test –c ddcct1 We deal with 1 controllers:ddcct1

############# Simulation ##################### of DAQ sending ######### non-transition commands for DCS #########################################

Type the name of a command to be issued: setOpeningIs the command defined in configuration (y/n)? nHas the setOpening any parameters (y/n)? yType the command parameters (p1|p2|...): 44.5Type the timeout value (sec): 2Type the controller name to be addressed to(*|ddc_test.ddcct1): ddcct1DdcCtSender: Result of the setOpening command on ddc_test is OK

Type the name of a command to be issued: // Ctrl-C to exit[vhom@srvlib vhom]$

Page 57: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov

DDC Tutorial 57

ATLAS ATLAS DCSDCS

Testing Non-transition Testing Non-transition Command - ResultsCommand - Results (2/2) (2/2)

Page 58: ATLAS DCS S. KhomoutnikovDDC Tutorial1 DAQ – DCS Communication Tutorial ( DDC v. 4.1, online-00-21-02 ) 58 slides with comments printing note pages before.

S. Khomoutnikov DDC Tutorial 58

The EndThe End

You can now use DAQ - DCS You can now use DAQ - DCS communication package in your communication package in your

applicationsapplications


Recommended