them Luca Molinari BECOAPS March 13 2017 Agenda BECOAPS Luca Molinari 1 Introduction TGM Video CTIM Monitoring BcdSet Viewer LL jTimDiag MTG Diagnostic LL ID: 801901
Download The PPT/PDF document "“Timing Diagnostic Tools and where to..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
“Timing Diagnostic Tools and where to find them”
Luca Molinari
BE-CO-APS
March 13, 2017
Slide2Agenda
BE-CO-APS, Luca Molinari
1
Introduction
TGM
Video (
∀)CTIM Monitoring (∀)BcdSet Viewer (LL)jTimDiag (∀)MTG Diagnostic (LL)
∀ = available for all machines
LL = available for LIC and LN4 machines
Slide3Timing information in the Java world is used by many applications mainly to:Guarantee data coherence
, e.g. various
information
are grouped by timestamps and telegrams. These information
are usually provided by JavaTgm Servers.
Provide information on current and history execution of beams, e.g. details on supercycles
, beam coupling, users and sent telegrams. These information is provided by Tgm RMI Server.Working on a Workstation application based on Java TGMBE-CO-APS, Luca Molinari2
Slide4All the operating devices are directly controlled by computers (Front End Computers, FEC) which are connected to the General
Machine Timing
network (a
dedicated network).
The instructions and controls for these computers are received on that network from the main timing generator (Central Timing, CT
).There are 2 kinds of frames sent in broadcast on
the Timing Network:Telegrams (Tgm).Events (Timing event frames).OverviewBE-CO-APS, Luca Molinari3
Slide5Telegrams: A telegram is a particular kind of frame which describes what a specific machine is doing or is going to do at a given time. Telegrams sent during the current BP can concern a given BP or cycle, and they can refer to the present or to a BP/cycle to come
.
Events
: Used
for synchronization purposes and for giving a global temporal alignment to the different machines present in a timing network, they are also called Triggers or Timing Event
frames.Telegrams and Events
BE-CO-APS, Luca Molinari4
Slide6TGM Video
Slide7The main tasks of TGM Video is to
:
Check
if telegrams arrive at the
Workstation.Show telegrams details when they arrive.Check if
events arrive. Especially the so-called AcqReady bit (to refresh acquisition in WorkingSets
, Knobs, other apps).What’s new?Check location of the TGM Server to see if it is alive.Record & show history of received telegrams.Display telegrams’ layout.TGM VideoBE-CO-APS, Luca Molinari6
Slide8TGM Video
BE-CO-APS, Luca Molinari
7
Slide9TGM Video can be launched from:The Console Manager
/
mcr
/bin/ccm, where it is called TGM Video
(e.g. Cycle -> TGM Video, Timing -> TGM Video…)
The console: /mcr/bin/jvideo and as a parameter pass machine name:
ADE, CPS, LEI, PSB, SPS...Run the jnlp from:http://abwww/ap/dist/accsoft/timing/accsoft-timing-app-tgmvideo/PRO/Connect to Timing Diagnostic Homepagehttp://co-timdiag:8888/ctim/home.htmlHow to start TGM VideoBE-CO-APS, Luca Molinari8
Slide10TGM Video overview
BE-CO-APS, Luca Molinari
9
Select machine
Slide11TGM Video overview
BE-CO-APS, Luca Molinari
10
Cycle info
Current User
Supercycle
info
Freeze/Unfreeze telegram reception
Slide12TGM Video overview
BE-CO-APS, Luca Molinari
11
Slide13TGM Video overview
BE-CO-APS, Luca Molinari
12
Slide14TGM Video: Events
BE-CO-APS, Luca Molinari
13
Last received event
Total events received
Slide15TGM Video: EventsBE-CO-APS, Luca Molinari
14
Slide16TGM Video: EventsBE-CO-APS, Luca Molinari
15
Slide17Example of reception issue
BE-CO-APS, Luca Molinari
16
Slide18TGM Video: Timestamps
BE-CO-APS, Luca Molinari
17
Last received timestamps
Select to register received values in History tab
Slide19TGM Video: Timestamps
BE-CO-APS, Luca Molinari
18
Slide20TGM Video: History
BE-CO-APS, Luca Molinari
19
Values are recorded
Slide21TGM Video: Infos
BE-CO-APS, Luca Molinari
20
Details of last received event
(details for experts).
Slide22TGM Video: Telegram Layout
BE-CO-APS, Luca Molinari
21
Slide23TGM Video: Telegram Layout
BE-CO-APS, Luca Molinari
22
Slide24TGM Video: Telegram Layout
BE-CO-APS, Luca Molinari
23
Slide25TGM Video
: Telegram Layout
BE-CO-APS, Luca Molinari
24
Slide26CTIM Monitoring
Slide27The main tasks of the CTIM Monitoring tool is to give access to timing logs:
telegrams and events delivered by the central timing are
logged
constantly and data are available through this tool.
It shows information similar to TGM Video but the source of data is completely different (logs instead of direct timing distribution).
Useful to investigate application reception issues and answer questions like: my application lost an event, was it sent from the CT?
CTIM MonitoringBE-CO-APS, Luca Molinari26
Slide28CTIM Monitoring can be launched from:The Console Manager /
mcr
/bin/
ccm, where it is called
GMT logging viewer (e.g. Timing -> GMT logging viewer)Run the
jnlp from: http://abwww/ap/dist/accsoft/timing/accsoft-timing-app-gmtlog/PRO/
Connect to Timing Diagnostic Homepagehttp://co-timdiag:8888/ctim/home.htmlHow to start CTIM MonitoringBE-CO-APS, Luca Molinari27
Slide29CTIM Monitoring:
Overview
BE-CO-APS, Luca Molinari
28
Application launched with SPS perspective
Slide30CTIM Monitoring: Telegrams
BE-CO-APS, Luca Molinari
29
Obtains the details about the last
SPS logged
telegram.
The details are refreshed every time a new telegram is logged.
Slide31CTIM Monitoring: Telegrams
BE-CO-APS, Luca Molinari
30
Telegram details.
Slide32CTIM Monitoring: Telegrams
BE-CO-APS, Luca Molinari
31
Type to filter by Group Name.
Slide33CTIM Monitoring:
Events
BE-CO-APS, Luca Molinari
32
Obtains the details about the last
SPS logged
event.The details are refreshed every time a new event logged.
Slide34CTIM Monitoring:
Events
BE-CO-APS, Luca Molinari
33
Events details.
Slide35CTIM Monitoring: Events
BE-CO-APS, Luca Molinari
34
Type to filter by Event Name.
Slide36CTIM Monitoring:
Telegram History
BE-CO-APS, Luca Molinari
35
Open date selection
Slide37CTIM Monitoring: Events
BE-CO-APS, Luca Molinari
36
Events details.
Slide38CTIM Monitoring:
Events
BE-CO-APS, Luca Molinari
37
Slide39BcdSet Viewer
Slide40The main tasks of the BCDSet Viewer is to:Give
access to data provided by the
Tgm RMI
Server.
Information on current and
passed execution of beams (normal and spare).Details on
supercycles and beam coupling.Users and sent telegrams.BCDSet ViewerBE-CO-APS, Luca Molinari39
Slide41BCD Set Viewer can be launched from:The Console Manager /
mcr
/bin/
ccm, where it is called BCD Set Viewer
(e.g. Cycle -> BCD Set Viewer…)Run the
jnlp from: http://abwww/ap/dist/accsoft/timing/accsoft-timing-app-bcdsetviewer/PRO
/Connect to Timing Diagnostic Homepagehttp://co-timdiag:8888/ctim/home.htmlHow to start BCDSet ViewerBE-CO-APS, Luca Molinari40
Slide42BCDSet Viewer: Overview
BE-CO-APS, Luca Molinari
41
Loaded BCDs
Played BCD
Slide43BCDSet Viewer: Overview
BE-CO-APS, Luca Molinari
42
BCD info
Overview of selected BCD
Slide44BCDSet Viewer: Overview
BE-CO-APS, Luca Molinari
43
Last played supercycle
Normal Beam
Spare Beam
Slide45BCDSet
Viewer: Overview
BE-CO-APS, Luca Molinari
44
Investigating PSB machine
Only PSB-related cycles are highlighted
Mouse over to display cycle&beam info + beam coupling with other machines
Slide46BCDSet
Viewer: Overview
BE-CO-APS, Luca Molinari
45
Changing machine
Slide47BCDSet Viewer: Machine perspective
BE-CO-APS, Luca Molinari
46
PSB view
CPS view
Slide48BCDSet
Viewer:
Beam coupling
BE-CO-APS, Luca Molinari
47
Beam coupling
Slide49BCDSet
Viewer: Overview
BE-CO-APS, Luca Molinari
48
Inspect other BCDs
Reinitialize timing reception
Slide50jTimDiag
Slide51The main tasks of the jTimDiag is to:Display local timings'
(
LTIM
) configurations
.Graphically show connections and
or-ing settings between different LTIM devices.Follow acquisition
information cycle by cycle during history recording phase.Generate a history summary page of CTIM events, basic period telegrams, and LTIMs’ firing.jTimDiagBE-CO-APS, Luca Molinari50
Slide52jTimDiag can be launched from:The Console Manager
/
mcr
/bin/ccm, where it is called
Timing Diagnostic V2 (e.g. General -> Timing Diagnostic V2 ).
Run the jnlp from: http://abwww.cern.ch/ap/dist/accsoft/timing/accsoft-timing-app-timdiag-v2/PRO/JTimDiagV2.jnlp
From FecNavigator http://co-timdiag:8891/fecnav/How to start jTimDiagBE-CO-APS, Luca Molinari51
Slide53All WorkingSets after selecting one or more LTIM
divices
.
How to start
jTimDiag
BE-CO-APS, Luca Molinari
52
Slide54jTimDiag: Selection
BE-CO-APS, Luca Molinari
53
Slide55jTimDiag: Selection
BE-CO-APS, Luca Molinari
54
Slide56jTimDiag: Selection
BE-CO-APS, Luca Molinari
55
Slide57jTimDiag: Selection
BE-CO-APS, Luca Molinari
56
Right click to
open menu
Slide58Add inputAdd outputAdd All inputsAdd All outputs
Add Network
jTimDiag
:
Adding Devices
BE-CO-APS, Luca Molinari
57LTIMLTIMLTIMLTIMLTIM
LTIM
LTIM
LTIM
LTIM
Slide59jTimDiag
: Selection
BE-CO-APS, Luca Molinari
58
Draw the layout of selected devices
Slide60jTimDiag: Layout
BE-CO-APS, Luca Molinari
59
Opened Layouts
Reopen selection pane
Slide61jTimDiag: Layout
BE-CO-APS, Luca Molinari
60
Slide62jTimDiag: Layout
BE-CO-APS, Luca Molinari
61
Selecting a device
from the Device list
from the layout
Will display its details and link to CCDB
Slide63jTimDiag: CCDB Link
BE-CO-APS, Luca Molinari
62
Slide64jTimDiag: Layout
BE-CO-APS, Luca Molinari
63
In order to avoid line crossing and device overlapping, devices can be repeated in the schema.
When one of these devices (OR-gate or LTIM) is selected, all its instances will be highlighted.
Inputs to different occurrences have to be considered
as OR-ed.
Slide65jTimDiag: Start Acquisition
BE-CO-APS, Luca Molinari
64
Acquisition Tab
Start the acquisition process
Slide66jTimDiag
:
Loading and Buffering
BE-CO-APS, Luca Molinari
65
Slide67jTimDiag: Running Acquisition
BE-CO-APS, Luca Molinari
66
Load Event
Front End Computer
Clock
Output Enabled/Disabled
Output
Control Value
Slide68jTimDiag: Acquisition
BE-CO-APS, Luca Molinari
67
Freeze acquisition when you have recorded what you need
Slide69jTimDiag: History Navigation
BE-CO-APS, Luca Molinari
68
Proceed back/forward through the recorded period using the slider and arrows.
Slide70Acquisition: History Navigation
BE-CO-APS, Luca Molinari
69
Generate a table with all recorded events
Slide71jTimDiag: History Tab
BE-CO-APS, Luca Molinari
70
Cycle or Basic Period begin
CTIM event (Central Timing)
LTIM event (Local Timing)
Slide72jTimDiag: History Tab, Buffering
BE-CO-APS, Luca Molinari
71
Event type
Timestamp
Event-related Cycle Timestamp
Event Info
Acquisition value
Slide73jTimDiag: History Tab
BE-CO-APS, Luca Molinari
72
Slide74jTimDiag: Measuring time intervals
BE-CO-APS, Luca Molinari
73
Slide75jTimDiag: Measuring time intervals
BE-CO-APS, Luca Molinari
74
Time difference in ns
Slide76jTimDiag: Measuring time intervals
BE-CO-APS, Luca Molinari
75
Distance between two BP is of course 1.2 s
Export table as .csv file
Slide77jTimDiag: Adding CTIM
BE-CO-APS, Luca Molinari
76
Add other CTIMs
By default only involved CTIM are added
(Load or Start event)
Slide78jTimDiag: Adding CTIM
BE-CO-APS, Luca Molinari
77
Filter by Timing Domain
Select a set of devices and confirm
Slide79MTG Diagnostic
Slide80LIC Central Timing is responsible for sending telegrams to LIC machines containing a list of hardware settings relatives to what will be played in the next cycle.This information, sent
through
telegrams, it’s
calculated by the
Central Timing logic based on different inputs:Desired BCD
to be played (containing Normal and Spare beams).External conditions (Hardware and Software).
MTG DiagnosticBE-CO-APS, Luca Molinari79
Slide81When a beam is not played it is useful to understand which were the conditions that prevented its execution. Here it comes the MTG Diagnostic Java application:
On startup a
copy
of the status of the
external conditions status is created in order to simulate the same conditions of the operational system.From the UI it is then possible to change the input and see how the simulation is affected.
Important: No change will be applied to the operational environment. All the settings will be evaluated only in the simulation.
MTG DiagnosticBE-CO-APS, Luca Molinari80
Slide82MTG Diagnostic
BE-CO-APS, Luca Molinari
81
MTG
Diag
UI
LIC CTSimulatedLIC CT
Telegrams + beam info
Ext. conditions
Update
Startup
Slide83MTG Diagnostic can be launched from:
The Console Manager
/
mcr/bin/ccm
, where it is called TGM Video (e.g. Timing -> MtgDiag from the SPSOP view)
Run the jnlp from: http://abwww/ap/dist/accsoft/timing/accsoft-timing-app-mtgdiag/PRO
/How to start MTG DiagnosticBE-CO-APS, Luca Molinari82
Slide84MTG Diagnostic
Overview
BE-CO-APS, Luca Molinari
83
Only LIC’s involved machine are displayed (no LEI).
Last received telegram
Animated played cycle
In this case we are displaying PSB perspective.
Slide85MTG Diagnostic Telegrams
BE-CO-APS, Luca Molinari
84
Click to hide a group
Slide86MTG Diagnostic TelegramsBE-CO-APS, Luca Molinari
85
Click to hide a group
Slide87MTG Diagnostic
Groups Filtering
BE-CO-APS, Luca Molinari
86
Add hidden group
Filter visible groups
Slide88MTG Diagnostic Groups Filtering
BE-CO-APS, Luca Molinari
87
Slide89MTG Diagnostic Stepping
BE-CO-APS, Luca Molinari
88
Last played basic period
Freeze simulation
Proceed step by step
Change simulation speedReset external conditions’ value.
The played cycle is shaded
(spear cycle in this case)
Slide90MTG Diagnostic
History Control
BE-CO-APS, Luca Molinari
89
Select a cycle
The telegram view is frozen
Navigate history
Slide91MTG Diagnostic
Bad Conditions
Tab
BE-CO-APS, Luca Molinari
90
Select a beam that is not executed
Conditions that prevent the beam from being played
Slide92MTG Diagnostic Bad Conditions Tab
BE-CO-APS, Luca Molinari
91
It is possible to change the status of the condition and see how/if the simulation changes
Slide93MTG Diagnostic Bad Conditions Tab
BE-CO-APS, Luca Molinari
92
The simulation will be repeated step by step using the new conditions: now the normal beam is executed.
Slide94MTG Diagnostic Bad Conditions Tab
BE-CO-APS, Luca Molinari
93
The bad conditions tab is now empty
Slide95MTG Diagnostic
Used Conditions
Tab
BE-CO-APS, Luca Molinari
94
All selected beam related conditions can be found in the used conditions tab.
Slide96MTG Diagnostic
Ext. Conditions
BE-CO-APS, Luca Molinari
95
From the Ext. Conditions tab is it possible to have a global view of the conditions of the given machine.
Slide97MTG Diagnostic Ext. Conditions
BE-CO-APS, Luca Molinari
96
And modify their status
Slide98MTG Diagnostic
Current Hardware Settings
BE-CO-APS, Luca Molinari
97
From the current hardware settings it is possible to see the loaded BCDs and right-clicking, their details.
Slide99MTG Diagnostic
Viewer
BE-CO-APS, Luca Molinari
98
Slide100Questions?