Skip to content
Snippets Groups Projects
dashboard.json 32.2 KiB
Newer Older
Emanuele Laface's avatar
Emanuele Laface committed
{
	"version": 1,
	"header_image": "",
	"allow_edit": false,
Emanuele Laface's avatar
Emanuele Laface committed
	"plugins": [],
	"panes": [
		{
			"width": 1,
			"row": {
				"1": 1,
				"2": 1,
				"3": 1,
				"4": 1,
				"5": 1,
				"6": 1
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col": {
				"1": 1,
				"2": 1,
				"3": 1,
				"4": 1,
				"5": 1,
				"6": 1
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col_width": 6,
Emanuele Laface's avatar
Emanuele Laface committed
			"widgets": [
				{
					"type": "html",
					"settings": {
						"html": "datasources[\"Clock\"][\"numeric_value\"]; // trick to trigger the update\nvar cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\ndocument.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = \"\";\n\nfontsize = 56;\nlmargin = 0;\nwidth = 100-lmargin;\n\nif (cols == 3) {\n    lmargin=20;\n    fontsize=36;\n    width = 100-lmargin;\n\n}\n\nif (cols == 2) {\n    lmargin=30;\n    fontsize=26;\n    width = 100-lmargin;\n\n}\n\ntext = `<div style=\\\"position: relative; margin-top: -15px; text-align: left;\\\">\n\t\t\t<div style=\\\"position: relative;\\\">\n\t\t\t\t<img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"></img>\n\t\t\t</div>\n<div class=\\\"tw-value\\\" style=\\\"font-size: `+String(fontsize)+`px; color:#ffffff !important; position: absolute; left: `+String(lmargin)+`%; width: `+String(width)+`%; height: 100%; justify-content: center; display: flex; align-items: center;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">\n\t\t\t\tPublic Operations Screen\n\t\t\t</div>\n\t\t</div>`;\n\nif (cols == 1){\n    text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"></div></img></div>\";\n    document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = \"Public Operations Screen\";\n}\n\nreturn text;\n\n//display: flex; align-items: center; justify-content: center;\n//",
Emanuele Laface's avatar
Emanuele Laface committed
						"height": 2
					}
				}
			]
		},
Emanuele Laface's avatar
Emanuele Laface committed
		{
			"title": "Permit table",
			"width": 1,
			"row": {
				"1": 7,
				"2": 7,
				"3": 7,
				"4": 7,
Emanuele Laface's avatar
Emanuele Laface committed
				"7": 11,
Emanuele Laface's avatar
Emanuele Laface committed
				"9": 11,
Emanuele Laface's avatar
Emanuele Laface committed
				"10": 11,
				"11": 11
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col": {
				"1": 1,
				"2": 1,
				"3": 1,
				"4": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"7": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"9": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"10": 2,
				"11": 2
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col_width": 1,
			"widgets": [
				{
					"type": "indicator",
					"settings": {
						"title": "",
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "datasources[\"general\"][\"FBIS::beam_permit_ok\"][\"value\"][\"index\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"on_text": "FBIS Global Permit",
						"off_text": "FBIS Global Permit"
					}
				},
Emanuele Laface's avatar
Emanuele Laface committed
				{
					"type": "indicator",
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "datasources[\"general\"][\"BPROD:Ops:BState\"][\"value\"][\"index\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"on_text": "OP Beam Requested",
						"off_text": "OP Beam Requested"
					}
				},
Emanuele Laface's avatar
Emanuele Laface committed
				{
					"type": "text_widget",
					"settings": {
						"title": "PSS1 Mode of Operation",
						"size": "regular",
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "return datasources[\"general\"][\"AccPSS:PSS-Area-1:PSSMode\"][\"value\"][\"choices\"][datasources[\"general\"][\"AccPSS:PSS-Area-1:PSSMode\"][\"value\"][\"index\"]];",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": true
					}
				}
			]
		},
Emanuele Laface's avatar
Emanuele Laface committed
		{
Emanuele Laface's avatar
Emanuele Laface committed
			"title": "RFQ",
Emanuele Laface's avatar
Emanuele Laface committed
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 57,
				"2": 35,
				"3": 7,
				"4": 7,
Emanuele Laface's avatar
Emanuele Laface committed
				"7": 7,
				"8": 7,
				"9": 7,
				"11": 7
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col": {
				"1": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 1,
				"3": 2,
				"4": 3,
				"5": 4,
				"6": 5,
				"7": 3,
				"8": 3,
				"9": 3,
				"11": 3
Emanuele Laface's avatar
Emanuele Laface committed
			},
Emanuele Laface's avatar
Emanuele Laface committed
			"col_width": 2,
Emanuele Laface's avatar
Emanuele Laface committed
			"widgets": [
				{
Emanuele Laface's avatar
Emanuele Laface committed
					"type": "indicator",
Emanuele Laface's avatar
Emanuele Laface committed
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "timelength = datasources[\"rfq\"][\"RFQ-010:RFS-EVR-101:RFSyncWdt-SP\"][\"value\"]/1000;\npwxdata = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:Dwn6-XAxis.[0:100:-1]\"][\"value\"];\npwydata = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]\"][\"value\"];\n\npower = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:AI2-SMonAvg-Mag\"][\"value\"]-datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:AI3-SMonAvg-Mag\"][\"value\"]+datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:AI4-SMonAvg-Mag\"][\"value\"]-datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:AI5-SMonAvg-Mag\"][\"value\"];\n\npwdata = 0;\ncounts = 0;\n\ntimestamp = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]\"][\"timeStamp\"][\"secondsPastEpoch\"];\nnow = Math.floor((new Date()).getTime() / 1000);\nenable = 1;\nif (now - timestamp > 60) {\n    enable = 0;\n}\n\nfor (i=0; i < pwxdata.length; i++) {\n    if (pwxdata[i] > timelength) {\n        break;\n    }\n\tpwdata += enable*pwydata[i];\n    counts += 1;\n}\n\nif (counts == 0) {\n    return 0;\n}\n\nif (pwdata/counts < 3) {\n    return 0;\n}\n\nreturn 1;",
						"on_text": "power = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:AI2-SMonAvg-Mag\"][\"value\"]-datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:AI3-SMonAvg-Mag\"][\"value\"]+datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:AI4-SMonAvg-Mag\"][\"value\"]-datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:AI5-SMonAvg-Mag\"][\"value\"];\n\nreturn \"Power: \"+String(power.toFixed(3))+\" kW\";",
						"off_text": "RFQ Off"
Emanuele Laface's avatar
Emanuele Laface committed
					"type": "flot_extended_plugin",
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"plot_type": "area",
						"legend": true,
						"height": 4,
						"value": "datasources[\"Clock\"][\"numeric_value\"];\n\ntimelength = datasources[\"rfq\"][\"RFQ-010:RFS-EVR-101:RFSyncWdt-SP\"][\"value\"]/1000*2;\n\npwxdata = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:Dwn6-XAxis.[0:100:-1]\"][\"value\"];\npwydata = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]\"][\"value\"];\n\ntimestamp = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]\"][\"timeStamp\"][\"secondsPastEpoch\"];\nnow = Math.floor((new Date()).getTime() / 1000);\nenable = 1;\nif (now - timestamp > 120) {\n    enable = 0;\n}\nelse {\n    enable = 1;\n}\n\npwdata = [];\n\nfor (i=0; i < pwxdata.length; i++) {\n    if (pwxdata[i] > timelength) {\n        break;\n    }\n\tpwdata.push([pwxdata[i], enable*pwydata[i]]);\n}\n\ndata = [{label: 'Power applied', data: pwdata, color: \"green\"}];\n\nreturn data;",
						"xticks": "datasources[\"Clock\"][\"numeric_value\"];\n\nvar cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\n\ntimelength = datasources[\"rfq\"][\"RFQ-010:RFS-EVR-101:RFSyncWdt-SP\"][\"value\"]/1000*2;\nxdata = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:Dwn6-XAxis.[0:100:-1]\"][\"value\"];\n\nif (xdata.length == 0) {\n    return;\n}\n\nif (timelength > xdata[xdata.length-1]) {\n    timelength = xdata[xdata.length-1];\n}\n\nxtick = [];\nsize = 10;\nif (cols == 1) {\n    size = 4;\n}\n\nfor (i = 0; i < (size+1); i += 1) {\n    xtick.push([timelength*i/size, (timelength*i/size).toFixed(3).toString()]);\n}\nxtick[size/2][1] = xtick[size/2][1]+\"<br>t [ms]\";\n\nreturn xtick;\n\n",
Emanuele Laface's avatar
Emanuele Laface committed
						"yticks": "datasources[\"Clock\"][\"numeric_value\"];\n\nvar rfq_data = datasources[\"rfq\"][\"RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]\"][\"value\"];\nvar rfq_ticks = [];\nvar min_rfq = Math.min(...rfq_data);\nvar max_rfq = Math.max(...rfq_data);\n\nif (max_rfq-min_rfq < 1) {\n    return([[-2,\"-2\"],[-1,\"-1\"],[0,\"0\"],[1,\"1\"],[2,\"P [kW]\"]]);\n}\n\nfor (i = min_rfq; i <= max_rfq; i += (max_rfq-min_rfq)/5) {\n\trfq_ticks.push([i, Math.trunc(i)]);\n}\n\nrfq_ticks.push([max_rfq+(max_rfq-min_rfq)/5, \"P [kW]\"]);\nreturn rfq_ticks;",
Emanuele Laface's avatar
Emanuele Laface committed
						"zoom": "xy"
Emanuele Laface's avatar
Emanuele Laface committed
					}
				}
			]
		},
Emanuele Laface's avatar
Emanuele Laface committed
		{
			"title": "Ion Source",
			"width": 1,
			"row": {
				"1": 41,
				"2": 7,
				"3": 31,
				"4": 7,
				"5": 17,
				"6": 7,
				"7": 7,
				"8": 7,
				"9": 7,
				"10": 7,
				"11": 7,
				"12": 7
			},
			"col": {
				"1": 1,
				"2": 2,
				"3": 2,
				"4": 2,
				"5": 3,
				"6": 4,
				"7": 1,
				"8": 1,
				"9": 1,
				"10": 1,
				"11": 1,
				"12": 1
			},
			"col_width": 1,
			"widgets": [
				{
					"type": "indicator",
					"settings": {
						"value": "datasources[\"source\"][\"ISrc-CS:ISS-Magtr-01:MwRdy\"][\"value\"][\"index\"]",
						"on_text": "Magnetron On",
						"off_text": "Magnetron Off"
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "Power",
						"size": "regular",
						"value": "datasources[\"source\"][\"ISrc-CS:ISS-Magtr-01:PulsHLvl-S\"][\"value\"]",
						"animate": true,
						"units": "W"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "High Voltage Platform",
						"value": "datasources[\"source\"][\"ISrc-CS:ISS-HVPS-01:Pwr-R\"][\"value\"][\"index\"]\n",
						"on_text": "String(datasources[\"source\"][\"ISrc-CS:ISS-HVPS-01:Vol-R\"][\"value\"].toFixed(0))+\" \"+datasources[\"source\"][\"ISrc-CS:ISS-HVPS-01:Vol-R\"][\"display\"][\"units\"]",
						"off_text": "String(datasources[\"source\"][\"ISrc-CS:ISS-HVPS-01:Vol-R\"][\"value\"].toFixed(0))+\" \"+datasources[\"source\"][\"ISrc-CS:ISS-HVPS-01:Vol-R\"][\"display\"][\"units\"]"
					}
				}
			]
		},
Emanuele Laface's avatar
Emanuele Laface committed
			"title": "Control Room",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 31,
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 15,
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 15,
				"4": 15,
				"5": 7,
				"6": 7,
				"7": 7,
				"8": 7,
Emanuele Laface's avatar
Emanuele Laface committed
				"9": 7,
				"10": 7,
				"11": 7,
				"12": 7,
				"13": 7,
				"14": 7,
				"15": 7
			},
			"col": {
				"1": 1,
				"2": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 1,
				"4": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 3,
				"6": 2,
				"7": 1,
				"8": 1,
				"9": 1,
				"10": 1,
				"11": 1,
				"12": 1,
				"13": 1,
				"14": 1,
				"15": 1
Emanuele Laface's avatar
Emanuele Laface committed
			"col_width": 1,
			"widgets": [
				{
Emanuele Laface's avatar
Emanuele Laface committed
					"type": "text_widget",
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"title": "Shift ID",
						"size": "regular",
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "datasources[\"general\"][\"NSO:Ops:SID\"][\"value\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": false
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"size": "regular",
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "datasources[\"Clock\"][\"numeric_value\"];\n\nvar elements = document.getElementsByClassName('tw-value');\n\nfor (var i = 0; i < elements.length; i++) {\n    var element = elements[i];\n    if (element.innerHTML == datasources[\"general\"][\"NSO:Ops:Msg\"][\"value\"]) {\n        element.style.fontSize = \"18px\";\n    }\n}\n\nreturn datasources[\"general\"][\"NSO:Ops:Msg\"][\"value\"];",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": true
Emanuele Laface's avatar
Emanuele Laface committed
					"type": "indicator",
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "if (datasources[\"general\"][\"NSO:Ops:ESSSystemPermit\"][\"value\"][\"index\"] == 1) {\n    return 1;\n}\nelse {\n    return 0;\n}",
Emanuele Laface's avatar
Emanuele Laface committed
						"on_text": "Beam Authorization",
						"off_text": "Beam Authorization"
					}
				},
				{
					"type": "indicator",
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "datasources[\"general\"][\"NSO:Ops:ESSSystemPermit\"][\"value\"][\"index\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"on_text": "System Permit",
						"off_text": "System Permit"
Emanuele Laface's avatar
Emanuele Laface committed
		{
			"title": "Beam Production Table",
			"width": 1,
			"row": {
				"1": 21,
				"2": 15,
				"3": 31,
				"4": 15,
				"5": 7,
				"6": 7,
				"7": 13,
				"8": 13,
				"9": 13,
				"10": 13,
				"11": 13
			},
			"col": {
				"1": 1,
				"2": 2,
				"3": 3,
				"4": 2,
				"5": 2,
				"6": 3,
				"7": 1,
				"8": 1,
				"9": 1,
				"10": 1,
				"11": 1
			},
			"col_width": 1,
			"widgets": [
				{
					"type": "text_widget",
					"settings": {
						"title": "Frequency",
						"size": "regular",
						"value": "datasources[\"general\"][\"TD-M:Ctrl-SCE-1:ScTable-RB\"][\"value\"].split(\"__\")[1];",
						"animate": true
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "ISrc Pulse Length",
						"size": "regular",
						"value": "valueArray = [];\nrawArray = datasources[\"general\"][\"TD-M:Ctrl-SCE-1:ScTable-RB\"][\"value\"].split(\"_\")\nrawArray.forEach(function (item, index) {\n  if (item != \"\") {\n      valueArray.push(item);\n  }\n});\n\nreturn valueArray[2];",
						"animate": true,
						"units": "µs"
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "LEBT Pulse Length",
						"size": "regular",
						"value": "valueArray = [];\nrawArray = datasources[\"general\"][\"TD-M:Ctrl-SCE-1:ScTable-RB\"][\"value\"].split(\"_\")\nrawArray.forEach(function (item, index) {\n  if (item != \"\") {\n      valueArray.push(item);\n  }\n});\n\nreturn valueArray[3];",
						"animate": true,
						"units": "µs"
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "MEBT Pulse Length",
						"size": "regular",
						"value": "valueArray = [];\nrawArray = datasources[\"general\"][\"TD-M:Ctrl-SCE-1:ScTable-RB\"][\"value\"].split(\"_\")\nrawArray.forEach(function (item, index) {\n  if (item != \"\") {\n      valueArray.push(item);\n  }\n});\n\nreturn valueArray[4];",
						"animate": true,
						"units": "µs"
					}
				}
			]
		},
		{
Emanuele Laface's avatar
Emanuele Laface committed
			"title": "DTL",
Emanuele Laface's avatar
Emanuele Laface committed
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 69,
				"2": 47,
				"3": 19,
				"4": 19,
				"5": 19,
				"6": 19,
				"9": 19,
				"10": 19
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col": {
				"1": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"4": 3,
				"5": 4,
				"6": 5,
				"9": 5,
				"10": 5
Emanuele Laface's avatar
Emanuele Laface committed
			},
Emanuele Laface's avatar
Emanuele Laface committed
			"col_width": 2,
Emanuele Laface's avatar
Emanuele Laface committed
			"widgets": [
				{
					"type": "indicator",
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "power = datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:AI2-SMonAvg-Mag\"][\"value\"]-datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:AI3-SMonAvg-Mag\"][\"value\"]+datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:AI4-SMonAvg-Mag\"][\"value\"]-datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:AI5-SMonAvg-Mag\"][\"value\"];\n\nif (power > 1) {\n    return 1;\n}\nelse {\n    return 0;\n}\n",
						"on_text": "power = datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:AI2-SMonAvg-Mag\"][\"value\"]-datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:AI3-SMonAvg-Mag\"][\"value\"]+datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:AI4-SMonAvg-Mag\"][\"value\"]-datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:AI5-SMonAvg-Mag\"][\"value\"];\n\nreturn \"Power: \"+String(power.toFixed(3))+\" kW\";",
						"off_text": "DTL Off"
Emanuele Laface's avatar
Emanuele Laface committed
				{
					"type": "flot_extended_plugin",
					"settings": {
						"plot_type": "area",
						"legend": true,
						"height": 4,
						"value": "datasources[\"Clock\"][\"numeric_value\"];\n\ntimelength = datasources[\"dtl\"][\"DTL-010:RFS-EVR-101:RFSyncWdt-SP\"][\"value\"]/1000*2;\n\npwxdata = datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:Dwn6-XAxis\"][\"value\"];\npwydata = datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:Dwn6-Cmp0\"][\"value\"];\n\ntimestamp = datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:Dwn6-Cmp0\"][\"timeStamp\"][\"secondsPastEpoch\"];\nnow = Math.floor((new Date()).getTime() / 1000);\nenable = 1;\nif (now - timestamp > 120) {\n    enable = 0;\n}\nelse {\n    enable = 1;\n}\n\npwdata = [];\n\nfor (i=0; i < pwxdata.length; i++) {\n    if (pwxdata[i] > timelength) {\n        break;\n    }\n\tpwdata.push([pwxdata[i], enable*pwydata[i]]);\n}\n\ndata = [{label: 'Power applied', data: pwdata, color: \"green\"}];\n\nreturn data;",
						"xticks": "datasources[\"Clock\"][\"numeric_value\"];\n\nvar cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\n\ntimelength = datasources[\"dtl\"][\"DTL-010:RFS-EVR-101:RFSyncWdt-SP\"][\"value\"]/1000*2;\nxdata = datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:Dwn6-XAxis\"][\"value\"];\n\nif (xdata.length == 0) {\n    return;\n}\n\nif (timelength > xdata[xdata.length-1]) {\n    timelength = xdata[xdata.length-1];\n}\n\nxtick = [];\nsize = 10;\nif (cols == 1) {\n    size = 4;\n}\n\nfor (i = 0; i < (size+1); i += 1) {\n    xtick.push([timelength*i/size, (timelength*i/size).toFixed(3).toString()]);\n}\nxtick[size/2][1] = xtick[size/2][1]+\"<br>t [ms]\";\n\nreturn xtick;\n\n",
						"yticks": "datasources[\"Clock\"][\"numeric_value\"];\n\nvar dtl_data = datasources[\"dtl\"][\"DTL-010:RFS-DIG-101:Dwn6-Cmp0\"][\"value\"];\nvar dtl_ticks = [];\nvar min_dtl = Math.min(...dtl_data);\nvar max_dtl = Math.max(...dtl_data);\n\nif (max_dtl-min_dtl < 1) {\n    return([[-2,\"-2\"],[-1,\"-1\"],[0,\"0\"],[1,\"1\"],[2,\"P [kW]\"]]);\n}\n\nfor (i = min_dtl; i <= max_dtl; i += (max_dtl-min_dtl)/5) {\n\tdtl_ticks.push([i, Math.trunc(i)]);\n}\n\ndtl_ticks.push([max_dtl+(max_dtl-min_dtl)/5, \"P [kW]\"]);\nreturn dtl_ticks;",
						"zoom": "xy"
					}
				}
			]
		},
		{
			"title": "Beam Mode",
			"width": 1,
			"row": {
				"1": 15,
				"2": 29,
				"3": 25,
				"4": 25,
				"5": 15,
				"6": 15,
				"7": 21,
				"8": 21,
				"9": 21,
				"10": 21,
				"11": 21,
				"12": 21
			},
			"col": {
				"1": 1,
				"2": 1,
				"3": 1,
				"4": 1,
				"5": 1,
				"6": 1,
				"7": 3,
				"8": 3,
				"9": 3,
				"10": 3,
				"11": 3,
				"12": 3
			},
			"col_width": 1,
			"widgets": [
Emanuele Laface's avatar
Emanuele Laface committed
				{
					"type": "text_widget",
					"settings": {
						"size": "regular",
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "datasources[\"general\"][\"TD-M:Ctrl-SCE-1:BMod-Sel\"][\"value\"][\"choices\"][datasources[\"general\"][\"TD-M:Ctrl-SCE-1:BMod-Sel\"][\"value\"][\"index\"]]\n",
						"animate": true
Emanuele Laface's avatar
Emanuele Laface committed
					"type": "text_widget",
Emanuele Laface's avatar
Emanuele Laface committed
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"title": "Destination",
						"size": "regular",
						"value": "datasources[\"general\"][\"TD-M:Ctrl-SCE-1:BDest-Sel\"][\"value\"][\"choices\"][datasources[\"general\"][\"TD-M:Ctrl-SCE-1:BDest-Sel\"][\"value\"][\"index\"]]",
						"animate": true
Emanuele Laface's avatar
Emanuele Laface committed
		{
			"title": "Beam Energy",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 49,
				"2": 25,
				"3": 31,
				"4": 25,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 17,
				"6": 17,
				"9": 17,
Emanuele Laface's avatar
Emanuele Laface committed
				"10": 17,
Emanuele Laface's avatar
Emanuele Laface committed
				"11": 17,
Emanuele Laface's avatar
Emanuele Laface committed
				"12": 17
			},
			"col": {
				"1": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"4": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 2,
				"6": 3,
				"9": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"10": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"11": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"12": 2
			},
			"col_width": 1,
			"widgets": [
				{
					"type": "text_widget",
					"settings": {
						"size": "regular",
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "switch(datasources[\"general\"][\"TD-M:Ctrl-SCE-1:BDest-Sel\"][\"value\"][\"index\"]) {\n    case 0:\n        return \"0 keV\";\n        break;\n    case 1:\n\t\treturn \"75 keV\";\n        break;\n\tcase 2:\n\t\treturn String(datasources[\"general\"][\"PBI-FBPM01::Energy-R\"][\"value\"].toFixed(2))+\" MeV\";\n        break;\n\tcase 3:\n\t\treturn \"21 MeV (Calc.)\";\n        break;\n\tcase 4:\n\t\treturn \"DLT3 Energy\";\n        break;\n    default:\n        return \"NO Energy reading\";\n}",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": true
					}
				}
			]
		},
		{
			"title": "ISrc Beam Current",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 53,
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 25,
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 35,
				"4": 29,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 21,
				"6": 17,
Emanuele Laface's avatar
Emanuele Laface committed
				"10": 17,
Emanuele Laface's avatar
Emanuele Laface committed
				"11": 17,
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col": {
				"1": 1,
				"2": 2,
				"3": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"4": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 2,
				"6": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"10": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"11": 2,
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col_width": 1,
			"widgets": [
				{
					"type": "text_widget",
					"settings": {
						"size": "regular",
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "datasources[\"source\"][\"ISrc-010:PBI-BCM-001:FlatTopCurrentR\"][\"value\"].toFixed(3)",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": true,
						"units": "mA"
					}
				}
			]
		},
Emanuele Laface's avatar
Emanuele Laface committed
		{
Emanuele Laface's avatar
Emanuele Laface committed
			"title": "Beam Current",
Emanuele Laface's avatar
Emanuele Laface committed
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 81,
				"2": 59,
				"3": 41,
				"4": 33,
Emanuele Laface's avatar
Emanuele Laface committed
				"6": 21,
Emanuele Laface's avatar
Emanuele Laface committed
				"7": 25,
				"8": 25,
Emanuele Laface's avatar
Emanuele Laface committed
				"10": 25,
Emanuele Laface's avatar
Emanuele Laface committed
				"11": 25,
Emanuele Laface's avatar
Emanuele Laface committed
				"12": 25
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col": {
				"1": 1,
				"2": 1,
				"3": 1,
				"4": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"7": 1,
				"8": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"10": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"11": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"12": 1
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col_width": 3,
Emanuele Laface's avatar
Emanuele Laface committed
			"widgets": [
				{
					"type": "flot_extended_plugin",
					"settings": {
						"plot_type": "line",
						"legend": true,
						"height": 5,
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "datasources[\"Clock\"][\"numeric_value\"];\n\nswitch(datasources[\"general\"][\"TD-M:Ctrl-SCE-1:BDest-Sel\"][\"value\"][\"index\"]) {\n    case 0:\n        return \"ISrc\";\n        break;\n    case 1:\n\t\tlebtydata = datasources[\"pbi\"][\"LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"];\n        rfqydata = datasources[\"pbi\"][\"RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"];\n        mebt1ydata = datasources[\"pbi\"][\"MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"];\n        mebt2ydata = datasources[\"pbi\"][\"MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"];\n        fclebtydata = datasources[\"pbi\"][\"LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000]\"][\"value\"];\n        fcmebtydata = datasources[\"pbi\"][\"MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000]\"][\"value\"];\n\t\tfcdtlydata = datasources[\"pbi\"][\"DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000]\"][\"value\"];\n        startroi = 1000;\n\t\tendroi = 9000;\n        break;\n\tcase 2:\n        lebtydata = datasources[\"pbi\"][\"LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"];\n        rfqydata = datasources[\"pbi\"][\"RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"];\n        mebt1ydata = datasources[\"pbi\"][\"MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"];\n        mebt2ydata = datasources[\"pbi\"][\"MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"];\n        fclebtydata = datasources[\"pbi\"][\"LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"];\n        fcmebtydata = datasources[\"pbi\"][\"MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"];\n\t\tfcdtlydata = datasources[\"pbi\"][\"DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"];\n        startroi = 6500;\n\t\tendroi = 6700;\n        break;\n\tcase 3:\n        lebtydata = datasources[\"pbi\"][\"LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"];\n        rfqydata = datasources[\"pbi\"][\"RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"];\n        mebt1ydata = datasources[\"pbi\"][\"MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"];\n        mebt2ydata = datasources[\"pbi\"][\"MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"];\n        fclebtydata = datasources[\"pbi\"][\"LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"];\n        fcmebtydata = datasources[\"pbi\"][\"MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"];\n        fcdtlydata = datasources[\"pbi\"][\"DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"];\n        startroi = 6500;\n\t\tendroi = 6700;\n        break;\n\tcase 4:\n\t\treturn \"DLT3\";\n        break;\n    default:\n        return \"NO Destination\";\n}\n\nlebtdata = [];\nrfqdata = [];\nmebt1data = [];\nmebt2data = [];\nfclebtdata = [];\nfcmebtdata = [];\nfcdtldata = [];\n\n\n\nfor (i=0; i < lebtydata.length; i++) {\n\tlebtdata.push([((endroi-startroi)/lebtydata.length*i+startroi)/1000, lebtydata[i]]);\n}\n\nfor (i=0; i < rfqydata.length; i++) {\n\trfqdata.push([((endroi-startroi)/rfqydata.length*i+startroi)/1000, rfqydata[i]]);\n}\n\nfor (i=0; i < mebt1ydata.length; i++) {\n\tmebt1data.push([((endroi-startroi)/mebt1ydata.length*i+startroi)/1000, mebt1ydata[i]]);\n}\n\nfor (i=0; i < mebt2ydata.length; i++) {\n\tmebt2data.push([((endroi-startroi)/mebt2ydata.length*i+startroi)/1000, mebt2ydata[i]]);\n}\n\nfor (i=0; i < fclebtydata.length; i++) {\n\tfclebtdata.push([((endroi-startroi)/fclebtydata.length*i+startroi)/1000, fclebtydata[i]]);\n}\n\nfor (i=0; i < fcmebtydata.length; i++) {\n\tfcmebtdata.push([((endroi-startroi)/fcmebtydata.length*i+startroi)/1000, fcmebtydata[i]]);\n}\nfor (i=0; i < fcdtlydata.length; i++) {\n\tfcdtldata.push([((endroi-startroi)/fcdtlydata.length*i+startroi)/1000, fcdtlydata[i]]);\n}\n\ndata = [{label: 'BCM LEBT', data: lebtdata, color: \"red\"},\n        {label: 'BCM RFQ', data: rfqdata, color: \"green\"},\n        {label: 'BCM MEBT 1', data: mebt1data, color: \"pink\"},\n        {label: 'BCM MEBT 2', data: mebt2data, color: \"black\"},\n        {label: 'FC LEBT', data: fclebtdata, color: \"lime\"},\n        {label: 'FC MEBT', data: fcmebtdata, color: \"yellow\"},\n        {label: 'FC DTL', data: fcdtldata, color: \"white\"}];\n\nreturn data;",
Emanuele Laface's avatar
Emanuele Laface committed
						"xticks": "",
Emanuele Laface's avatar
Emanuele Laface committed
						"yticks": "datasources[\"Clock\"][\"numeric_value\"];\n\nif (typeof axes === 'undefined') {\n    return;\n}\n\nytick = [];\n\nmax_val = 0;\nmin_val = 0;\n    \nswitch(datasources[\"POS\"][\"TD-M:Ctrl-SCE-1:BDest-Sel\"][\"value\"][\"index\"]) {\n    case 0: // ISrc\n        return;\n        break;\n    case 1:\n        max_val = Math.max(Math.max.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000]\"][\"value\"]),\n\t\tMath.max.apply(Math, datasources[\"POS\"][\"DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000]\"][\"value\"]));\n        \n        min_val = Math.min(Math.min.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[5503:200:49530]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000]\"][\"value\"]),\n\t\tMath.min.apply(Math, datasources[\"POS\"][\"DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000]\"][\"value\"]));\n        break;\n\tcase 2:\n        max_val = Math.max(Math.max.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]),\n\t\tMath.max.apply(Math, datasources[\"POS\"][\"DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]));\n        \n        min_val = Math.min(Math.min.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]));\n        break;\n\tcase 3: // DTL1\n        max_val = Math.max(Math.max.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]),\n        Math.max.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]),\n\t\tMath.max.apply(Math, datasources[\"POS\"][\"DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]));\n        \n        min_val = Math.min(Math.min.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[35772:4:36872]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]),\n        Math.min.apply(Math, datasources[\"POS\"][\"DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]\"][\"value\"]));\n        break;\n\tcase 4: // DTL2\n\t\treturn;\n        break;\n    default:\n        return;\n}\n\n\nif (max_val < 0.3) {\n    for (i=-0.2; i<0.2; i+=0.05) {\n        ytick.push([i,String(i.toFixed(2))]);\n    }\n    ytick.push([0.2,\"I [mA]\"]);\n}\nelse {\n    step = (max_val-min_val)/10;\n    for (i=min_val; i<max_val; i+=step) {\n        ytick.push([i,String(i.toFixed(1))]);\n    }\n    ytick.push([max_val+step,\"I [mA]\"]);\n}\n\n\n\n\nreturn ytick;",
Emanuele Laface's avatar
Emanuele Laface committed
						"zoom": "xy"
					}
				}
			]
Emanuele Laface's avatar
Emanuele Laface committed
		}
	],
	"datasources": [
		{
Emanuele Laface's avatar
Emanuele Laface committed
			"name": "general",
Emanuele Laface's avatar
Emanuele Laface committed
			"type": "JSON",
			"settings": {
				"url": "/data/api/v2/pvget/AccPSS:PSS-Area-1:PSSMode,BPROD:Ops:BState,NSO:Ops:SID,NSO:Ops:Msg,NSO:Ops:BeamAuthorization,NSO:Ops:ESSSystemPermit,FBIS::beam_permit_ok,PBI-FBPM01::Energy-R,TD-M:Ctrl-SCE-1:ScTable-RB,TD-M:Ctrl-SCE-1:BState-Sts,TD-M:Ctrl-SCE-1:BMod-Sel,TD-M:Ctrl-SCE-1:BDest-Sel",
Emanuele Laface's avatar
Emanuele Laface committed
				"use_thingproxy": false,
				"refresh": 10,
Emanuele Laface's avatar
Emanuele Laface committed
				"method": "GET"
Emanuele Laface's avatar
Emanuele Laface committed
			}
		},
		{
			"name": "Clock",
			"type": "clock",
			"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
		},
		{
			"name": "source",
			"type": "JSON",
			"settings": {
				"url": "/data/api/v2/pvget/ISrc-CS:ISS-Magtr-01:MwRdy,ISrc-CS:ISS-Magtr-01:PulsHLvl-S,ISrc-CS:ISS-HVPS-01:Pwr-R,ISrc-010:PBI-BCM-001:FlatTopCurrentR,ISrc-CS:ISS-HVPS-01:Vol-R",
				"use_thingproxy": true,
				"refresh": 10,
				"method": "GET"
			}
		},
		{
			"name": "rfq",
			"type": "JSON",
			"settings": {
				"url": "/data/api/v2/pvget/RFQ-010:RFS-DIG-101:AI2-SMonAvg-Mag,RFQ-010:RFS-DIG-101:AI3-SMonAvg-Mag,RFQ-010:RFS-DIG-101:AI4-SMonAvg-Mag,RFQ-010:RFS-DIG-101:AI5-SMonAvg-Mag,RFQ-010:RFS-DIG-101:Dwn6-XAxis.[0:100:-1],RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1],RFQ-010:RFS-EVR-101:RFSyncWdt-SP",
				"use_thingproxy": true,
				"refresh": 10,
				"method": "GET"
			}
		},
		{
			"name": "pbi",
			"type": "JSON",
			"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
				"url": "/data/api/v2/pvget/RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872],RFQ-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530],LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700],LEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000],LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872],LEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530],MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700],MEBT-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000],MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[35772:4:36872],MEBT-010:PBI-BCM-001:PRC-TR1-ArrayData.[5503:200:49530],MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[35772:4:36872],MEBT-010:PBI-BCM-002:PRC-TR1-ArrayData.[5503:200:49530],DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[1000:40:9000],DTL-010:PBI-FC-001:TRC2-ArrayData-Comp.[6500:1:6700]",
Emanuele Laface's avatar
Emanuele Laface committed
				"use_thingproxy": true,
				"refresh": 10,
				"method": "GET"
			}
		},
		{
			"name": "dtl",
			"type": "JSON",
			"settings": {
				"url": "/data/api/v2/pvget/DTL-010:RFS-DIG-101:AI2-SMonAvg-Mag,DTL-010:RFS-DIG-101:AI3-SMonAvg-Mag,DTL-010:RFS-DIG-101:AI4-SMonAvg-Mag,DTL-010:RFS-DIG-101:AI5-SMonAvg-Mag,DTL-010:RFS-DIG-101:Dwn6-XAxis,DTL-010:RFS-DIG-101:Dwn6-Cmp0,DTL-010:RFS-EVR-101:RFSyncWdt-SP",
				"use_thingproxy": true,
				"refresh": 10,
Emanuele Laface's avatar
Emanuele Laface committed
				"method": "GET",
				"name": "dtl"
Emanuele Laface's avatar
Emanuele Laface committed
			}
Emanuele Laface's avatar
Emanuele Laface committed
		}
	],
Emanuele Laface's avatar
Emanuele Laface committed
}