Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ess-public-screens
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ics-software
ess-public-screens
Commits
86a53215
Commit
86a53215
authored
2 years ago
by
Emanuele Laface
Browse files
Options
Downloads
Patches
Plain Diff
DTL BPMs
parent
394f7438
No related branches found
No related tags found
No related merge requests found
Pipeline
#114959
passed
2 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
WebSites/instruments/dashboard.json
+61
-2
61 additions, 2 deletions
WebSites/instruments/dashboard.json
with
61 additions
and
2 deletions
WebSites/instruments/dashboard.json
+
61
−
2
View file @
86a53215
...
@@ -35,12 +35,18 @@
...
@@ -35,12 +35,18 @@
"title"
:
"Beam Current Monitors and Faraday Cups"
,
"title"
:
"Beam Current Monitors and Faraday Cups"
,
"width"
:
1
,
"width"
:
1
,
"row"
:
{
"row"
:
{
"1"
:
7
,
"2"
:
7
,
"3"
:
7
,
"4"
:
7
,
"4"
:
7
,
"5"
:
7
,
"5"
:
7
,
"7"
:
7
,
"7"
:
7
,
"9"
:
7
"9"
:
7
},
},
"col"
:
{
"col"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
1
,
"4"
:
1
,
"4"
:
1
,
"5"
:
3
,
"5"
:
3
,
"7"
:
3
,
"7"
:
3
,
...
@@ -67,6 +73,9 @@
...
@@ -67,6 +73,9 @@
"title"
:
"MEBT BPMS"
,
"title"
:
"MEBT BPMS"
,
"width"
:
1
,
"width"
:
1
,
"row"
:
{
"row"
:
{
"1"
:
21
,
"2"
:
21
,
"3"
:
21
,
"4"
:
21
,
"4"
:
21
,
"8"
:
19
,
"8"
:
19
,
"9"
:
19
,
"9"
:
19
,
...
@@ -74,6 +83,9 @@
...
@@ -74,6 +83,9 @@
"12"
:
19
"12"
:
19
},
},
"col"
:
{
"col"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
1
,
"4"
:
1
,
"4"
:
1
,
"8"
:
1
,
"8"
:
1
,
"9"
:
1
,
"9"
:
1
,
...
@@ -88,7 +100,7 @@
...
@@ -88,7 +100,7 @@
"plot_type"
:
"line"
,
"plot_type"
:
"line"
,
"legend"
:
true
,
"legend"
:
true
,
"height"
:
6
,
"height"
:
6
,
"value"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var xbpm = [];
\n
var ybpm = [];
\n\n
let bpmpositions = [0.400, 0.762, 2.224, 2.424, 2.624, 3.436, 3.636, 3.836];
\n
var xpv =
\"\"
;
\n
var ypv =
\"\"
;
\n
var value = 0;
\n
var yvalue = 0;
\n\n
for (i=1; i < 9; i++) {
\n
xpv =
\"
MEBT-010:PBI-BPM-00
\"
+String(i)+
\"
:XP-AvgValue
\"
;
\n
xvalue = datasources[
\"
BPM
\"
][xpv][
\"
value
\"
]/1000;
\n
if (xvalue == null) {
\n
xvalue = 0.0;
\n
}
\n
xbpm.push([bpmpositions[i-1], xvalue]);
\n
ypv =
\"
MEBT-010:PBI-BPM-00
\"
+String(i)+
\"
:YP-AvgValue
\"
;
\n
yvalue = datasources[
\"
BPM
\"
][ypv][
\"
value
\"
]/1000;
\n
if (yvalue == null) {
\n
yvalue = 0.0;
\n
}
\n
ybpm.push([bpmpositions[i-1], yvalue]);
\n
}
\n\n
let data = [{label: 'Horizontal', data: xbpm, color:
\"
lime
\"
},
\n
{label: 'Vertical', data: ybpm, color:
\"
yellow
\"
}];
\n\n
return data;"
,
"value"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var xbpm = [];
\n
var ybpm = [];
\n\n
let bpmpositions = [0.400, 0.762, 2.224, 2.424, 2.624, 3.436, 3.636, 3.836];
\n
var xpv =
\"\"
;
\n
var ypv =
\"\"
;
\n
var value = 0;
\n
var yvalue = 0;
\n\n
for (i=1; i < 9; i++) {
\n
xpv =
\"
MEBT-010:PBI-BPM-00
\"
+String(i)+
\"
:XP-AvgValue
\"
;
\n
xvalue = datasources[
\"
MEBT-
BPM
\"
][xpv][
\"
value
\"
]/1000;
\n
if (xvalue == null) {
\n
xvalue = 0.0;
\n
}
\n
xbpm.push([bpmpositions[i-1], xvalue]);
\n
ypv =
\"
MEBT-010:PBI-BPM-00
\"
+String(i)+
\"
:YP-AvgValue
\"
;
\n
yvalue = datasources[
\"
MEBT-
BPM
\"
][ypv][
\"
value
\"
]/1000;
\n
if (yvalue == null) {
\n
yvalue = 0.0;
\n
}
\n
ybpm.push([bpmpositions[i-1], yvalue]);
\n
}
\n\n
let data = [{label: 'Horizontal', data: xbpm, color:
\"
lime
\"
},
\n
{label: 'Vertical', data: ybpm, color:
\"
yellow
\"
}];
\n\n
return data;"
,
"xticks"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');
\n\n
var digits = 3;
\n
var bpmxlabel =
\"
<br>BPM Position from MEBT start [m]
\"
;
\n\n
if (cols == 2) {
\n
bpmxlabel =
\"
<br>BPM pos. [m]
\"
;
\n
digits = 1;
\n
}
\n
if (cols == 1) {
\n
bpmxlabel =
\"
<br>BPM pos. [m]
\"
;
\n
digits = 0;
\n
}
\n\n\n
var bpmxtick = [];
\n\n
let bpmpositions = [0.400, 0.762, 2.224, 2.424, 2.624, 3.436, 3.636, 3.836];
\n\n
for (i = 0; i < 8; i += 1) {
\n\t
bpmxtick.push([bpmpositions[i], String(bpmpositions[i].toFixed(digits))]);
\n
}
\n
bpmxtick[2][1] += bpmxlabel;
\n\n
return bpmxtick;"
,
"xticks"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');
\n\n
var digits = 3;
\n
var bpmxlabel =
\"
<br>BPM Position from MEBT start [m]
\"
;
\n\n
if (cols == 2) {
\n
bpmxlabel =
\"
<br>BPM pos. [m]
\"
;
\n
digits = 1;
\n
}
\n
if (cols == 1) {
\n
bpmxlabel =
\"
<br>BPM pos. [m]
\"
;
\n
digits = 0;
\n
}
\n\n\n
var bpmxtick = [];
\n\n
let bpmpositions = [0.400, 0.762, 2.224, 2.424, 2.624, 3.436, 3.636, 3.836];
\n\n
for (i = 0; i < 8; i += 1) {
\n\t
bpmxtick.push([bpmpositions[i], String(bpmpositions[i].toFixed(digits))]);
\n
}
\n
bpmxtick[2][1] += bpmxlabel;
\n\n
return bpmxtick;"
,
"yticks"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var ytick = [];
\n\n
for (i = -4; i < 4; i += 1) {
\n\t
ytick.push([i, String(i)]);
\n
}
\n\n
ytick.push([4,
\"
∆X,∆Y [mm]
\"
]);
\n\n
return ytick;"
,
"yticks"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var ytick = [];
\n\n
for (i = -4; i < 4; i += 1) {
\n\t
ytick.push([i, String(i)]);
\n
}
\n\n
ytick.push([4,
\"
∆X,∆Y [mm]
\"
]);
\n\n
return ytick;"
,
"points"
:
true
,
"points"
:
true
,
...
@@ -101,11 +113,17 @@
...
@@ -101,11 +113,17 @@
"title"
:
"MEBT Wire Scanners"
,
"title"
:
"MEBT Wire Scanners"
,
"width"
:
1
,
"width"
:
1
,
"row"
:
{
"row"
:
{
"1"
:
35
,
"2"
:
35
,
"3"
:
35
,
"4"
:
35
,
"4"
:
35
,
"13"
:
35
,
"13"
:
35
,
"15"
:
35
"15"
:
35
},
},
"col"
:
{
"col"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
1
,
"4"
:
1
,
"4"
:
1
,
"13"
:
1
,
"13"
:
1
,
"15"
:
1
"15"
:
1
...
@@ -123,6 +141,36 @@
...
@@ -123,6 +141,36 @@
}
}
}
}
]
]
},
{
"title"
:
"DTL1 BPMs"
,
"width"
:
1
,
"row"
:
{
"1"
:
53
,
"2"
:
53
,
"4"
:
53
},
"col"
:
{
"1"
:
1
,
"2"
:
1
,
"4"
:
1
},
"col_width"
:
4
,
"widgets"
:
[
{
"type"
:
"flot_extended_plugin"
,
"settings"
:
{
"plot_type"
:
"line"
,
"legend"
:
true
,
"height"
:
6
,
"value"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var xbpm = [];
\n
var ybpm = [];
\n\n
let bpmpositions = [0.230, 1.290, 1.695, 3.325, 4.128, 6.923];
\n
var xpv =
\"\"
;
\n
var ypv =
\"\"
;
\n
var value = 0;
\n
var yvalue = 0;
\n\n
for (i=1; i < 7; i++) {
\n
xpv =
\"
DTL-010:PBI-BPM-00
\"
+String(i)+
\"
:XP-AvgValue
\"
;
\n
xvalue = datasources[
\"
DTL1-BPM
\"
][xpv][
\"
value
\"
]/1000;
\n
if (xvalue == null) {
\n
xvalue = 0.0;
\n
}
\n
xbpm.push([bpmpositions[i-1], xvalue]);
\n
ypv =
\"
DTL-010:PBI-BPM-00
\"
+String(i)+
\"
:YP-AvgValue
\"
;
\n
yvalue = datasources[
\"
DTL1-BPM
\"
][ypv][
\"
value
\"
]/1000;
\n
if (yvalue == null) {
\n
yvalue = 0.0;
\n
}
\n
ybpm.push([bpmpositions[i-1], yvalue]);
\n
}
\n\n
let data = [{label: 'Horizontal', data: xbpm, color:
\"
lime
\"
},
\n
{label: 'Vertical', data: ybpm, color:
\"
yellow
\"
}];
\n\n
return data;"
,
"xticks"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');
\n\n
var digits = 3;
\n
var bpmxlabel =
\"
<br>BPM Position from DTL1 start [m]
\"
;
\n\n
if (cols == 2) {
\n
bpmxlabel =
\"
<br>BPM pos. [m]
\"
;
\n
digits = 1;
\n
}
\n
if (cols == 1) {
\n
bpmxlabel =
\"
<br>BPM pos. [m]
\"
;
\n
digits = 0;
\n
}
\n\n\n
var bpmxtick = [];
\n\n
let bpmpositions = [0.230, 1.290, 1.695, 3.325, 4.128, 6.923];
\n\n
for (i = 0; i < 6; i += 1) {
\n\t
bpmxtick.push([bpmpositions[i], String(bpmpositions[i].toFixed(digits))]);
\n
}
\n
bpmxtick[3][1] += bpmxlabel;
\n\n
return bpmxtick;"
,
"yticks"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var ytick = [];
\n\n
for (i = -4; i < 4; i += 1) {
\n\t
ytick.push([i, String(i)]);
\n
}
\n\n
ytick.push([4,
\"
∆X,∆Y [mm]
\"
]);
\n\n
return ytick;"
,
"points"
:
true
,
"zoom"
:
"xy"
}
}
]
}
}
],
],
"datasources"
:
[
"datasources"
:
[
...
@@ -144,7 +192,7 @@
...
@@ -144,7 +192,7 @@
}
}
},
},
{
{
"name"
:
"BPM"
,
"name"
:
"
MEBT-
BPM"
,
"type"
:
"JSON"
,
"type"
:
"JSON"
,
"settings"
:
{
"settings"
:
{
"url"
:
"/data/api/v2/pvget/MEBT-010:PBI-BPM-001:XP-AvgValue,MEBT-010:PBI-BPM-002:XP-AvgValue,MEBT-010:PBI-BPM-003:XP-AvgValue,MEBT-010:PBI-BPM-004:XP-AvgValue,MEBT-010:PBI-BPM-005:XP-AvgValue,MEBT-010:PBI-BPM-006:XP-AvgValue,MEBT-010:PBI-BPM-007:XP-AvgValue,MEBT-010:PBI-BPM-008:XP-AvgValue,MEBT-010:PBI-BPM-001:YP-AvgValue,MEBT-010:PBI-BPM-002:YP-AvgValue,MEBT-010:PBI-BPM-003:YP-AvgValue,MEBT-010:PBI-BPM-004:YP-AvgValue,MEBT-010:PBI-BPM-005:YP-AvgValue,MEBT-010:PBI-BPM-006:YP-AvgValue,MEBT-010:PBI-BPM-007:YP-AvgValue,MEBT-010:PBI-BPM-008:YP-AvgValue"
,
"url"
:
"/data/api/v2/pvget/MEBT-010:PBI-BPM-001:XP-AvgValue,MEBT-010:PBI-BPM-002:XP-AvgValue,MEBT-010:PBI-BPM-003:XP-AvgValue,MEBT-010:PBI-BPM-004:XP-AvgValue,MEBT-010:PBI-BPM-005:XP-AvgValue,MEBT-010:PBI-BPM-006:XP-AvgValue,MEBT-010:PBI-BPM-007:XP-AvgValue,MEBT-010:PBI-BPM-008:XP-AvgValue,MEBT-010:PBI-BPM-001:YP-AvgValue,MEBT-010:PBI-BPM-002:YP-AvgValue,MEBT-010:PBI-BPM-003:YP-AvgValue,MEBT-010:PBI-BPM-004:YP-AvgValue,MEBT-010:PBI-BPM-005:YP-AvgValue,MEBT-010:PBI-BPM-006:YP-AvgValue,MEBT-010:PBI-BPM-007:YP-AvgValue,MEBT-010:PBI-BPM-008:YP-AvgValue"
,
...
@@ -162,6 +210,17 @@
...
@@ -162,6 +210,17 @@
"refresh"
:
10
,
"refresh"
:
10
,
"method"
:
"GET"
"method"
:
"GET"
}
}
},
{
"name"
:
"DTL1-BPM"
,
"type"
:
"JSON"
,
"settings"
:
{
"url"
:
"/data/api/v2/pvget/DTL-010:PBI-BPM-001:XP-AvgValue,DTL-010:PBI-BPM-001:YP-AvgValue,DTL-010:PBI-BPM-002:XP-AvgValue,DTL-010:PBI-BPM-002:YP-AvgValue,DTL-010:PBI-BPM-003:XP-AvgValue,DTL-010:PBI-BPM-003:YP-AvgValue,DTL-010:PBI-BPM-004:XP-AvgValue,DTL-010:PBI-BPM-004:YP-AvgValue,DTL-010:PBI-BPM-005:XP-AvgValue,DTL-010:PBI-BPM-005:YP-AvgValue,DTL-010:PBI-BPM-006:XP-AvgValue,DTL-010:PBI-BPM-006:YP-AvgValue"
,
"use_thingproxy"
:
true
,
"refresh"
:
10
,
"method"
:
"GET"
,
"name"
:
"DTL1-BPM"
}
}
}
],
],
"columns"
:
4
"columns"
:
4
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment