Skip to content

Commit e7038ab

Browse files
committed
Update t01-services example services
1 parent 99a0969 commit e7038ab

7 files changed

Lines changed: 356 additions & 8 deletions

File tree

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
# yaml-language-server: $schema=/epics/ibek-defs/ioc.schema.json
2+
3+
ioc_name: "{{ _global.get_env('IOC_NAME') }}"
4+
5+
description: auto-generated by https://github.com/epics-containers/builder2ibek
6+
7+
entities:
8+
- type: epics.EpicsEnvSet
9+
name: EPICS_TS_MIN_WEST
10+
value: "0"
11+
12+
- type: epics.EpicsCaMaxArrayBytes
13+
max_bytes: 100000000
14+
15+
- type: devIocStats.iocAdminSoft
16+
IOC: "{{ ioc_name | upper }}"
17+
18+
- type: autosave.Autosave
19+
P: "{{ ioc_name | upper }}:"
20+
21+
- type: ADAravis.aravisCamera
22+
BUFFERS: 200
23+
CLASS: AutoADGenICam
24+
ID: 127.0.0.1
25+
P: BL01T-DI-CAM-01
26+
PORT: DCAM1.cam
27+
R: ":CAM:"
28+
29+
- type: ADAravis.aravisSettings
30+
camera: DCAM1.cam
31+
32+
- type: ADCore.NDROI
33+
ADDR: 0
34+
NDARRAY_ADDR: 0
35+
NDARRAY_PORT: DCAM1.cam
36+
P: BL01T-DI-CAM-01
37+
PORT: DCAM1.roi
38+
QUEUE: 16
39+
R: ":ROI:"
40+
TIMEOUT: 1
41+
42+
- type: ADCore.NDStats
43+
ADDR: 0
44+
HIST_SIZE: 65535
45+
NCHANS: 20000
46+
NDARRAY_ADDR: 0
47+
NDARRAY_PORT: DCAM1.cam
48+
P: BL01T-DI-CAM-01
49+
PORT: DCAM1.stat
50+
QUEUE: 16
51+
R: ":STAT:"
52+
TIMEOUT: 1
53+
XSIZE: 1292
54+
YSIZE: 964
55+
56+
- type: ADCore.NDStdArrays
57+
ADDR: 0
58+
FTVL: UCHAR
59+
NDARRAY_ADDR: 0
60+
NDARRAY_PORT: DCAM1.roi
61+
NELEMENTS: 1245488
62+
P: BL01T-DI-CAM-01
63+
PORT: DCAM1.arr
64+
QUEUE: 2
65+
R: ":ARR:"
66+
TIMEOUT: 1
67+
TYPE: Int8
68+
69+
- type: ADCore.NDProcess
70+
ADDR: 0
71+
NDARRAY_ADDR: 0
72+
NDARRAY_PORT: DCAM1.cam
73+
P: BL01T-DI-CAM-01
74+
PORT: DCAM1.proc
75+
QUEUE: 16
76+
R: ":PROC:"
77+
TIMEOUT: 1
78+
79+
- type: ADCore.NDOverlay
80+
ADDR: 0
81+
NDARRAY_ADDR: 0
82+
NDARRAY_PORT: DCAM1.proc
83+
P: BL01T-DI-CAM-01
84+
PORT: DCAM1.over
85+
QUEUE: 16
86+
R: ":OVER:"
87+
TIMEOUT: 1
88+
89+
- type: ADCore.NDFileTIFF
90+
ADDR: 0
91+
NDARRAY_ADDR: 0
92+
NDARRAY_PORT: DCAM1.cam
93+
P: BL01T-DI-CAM-01
94+
PORT: DCAM1.tiff
95+
QUEUE: 16
96+
R: ":TIFF:"
97+
TIMEOUT: 1
98+
99+
- type: ADCore.NDFileHDF5
100+
ADDR: 0
101+
NDARRAY_ADDR: 0
102+
NDARRAY_PORT: DCAM1.cam
103+
P: BL01T-DI-CAM-01
104+
PORT: DCAM1.hdf
105+
QUEUE: 16
106+
R: ":HDF5:"
107+
TIMEOUT: 1
108+
109+
- type: ADCore.NDColorConvert
110+
ADDR: 0
111+
NDARRAY_ADDR: 0
112+
NDARRAY_PORT: DCAM1.cam
113+
P: BL01T-DI-CAM-01
114+
PORT: DCAM1.cc
115+
QUEUE: 4
116+
R: ":CC:"
117+
TIMEOUT: 1
118+
119+
- type: ADCore.NDTransform
120+
ADDR: 0
121+
NDARRAY_ADDR: 0
122+
NDARRAY_PORT: DCAM1.cam
123+
P: BL01T-DI-CAM-01
124+
PORT: DCAM1.trans
125+
R: ":TRANS:"
126+
TIMEOUT: 1
127+
128+
- type: ffmpegServer.ffmpegStream
129+
NDARRAY_ADDR: 0
130+
NDARRAY_PORT: DCAM1.cam
131+
P: BL01T-DI-CAM-01
132+
PORT: DCAM1.mjpg
133+
R: ":MJPG:"
134+
135+
# Initial settings
136+
137+
- type: epics.StartupCommand
138+
command: dbLoadRecords("/epics/ioc/config/devsta.db")
139+
140+
- type: epics.PostStartupCommand
141+
command: callbackSetQueueSize(100000)
142+
143+
- type: epics.PostStartupCommand
144+
command: dbpf BL01T-DI-CAM-01:CAM:GC_GevSCPSPacketSize 1500
145+
146+
- type: epics.PostStartupCommand
147+
command: dbpf BL01T-DI-CAM-01:CAM:GC_StrBytesPerSecond 55000000
148+
149+
# MJPG
150+
151+
- type: epics.PostStartupCommand
152+
command: dbpf BL01T-DI-CAM-01:MJPG:NDArrayPort DCAM1.cam
153+
154+
- type: epics.PostStartupCommand
155+
command: dbpf BL01T-DI-CAM-01:MJPG:EnableCallbacks Enable
156+
157+
- type: epics.PostStartupCommand
158+
command: dbpf BL01T-DI-CAM-01:MJPG:MAXW 1456
159+
160+
- type: epics.PostStartupCommand
161+
command: dbpf BL01T-DI-CAM-01:MJPG:MAXH 1088
162+
163+
# CAM
164+
165+
- type: epics.PostStartupCommand
166+
command: dbpf BL01T-DI-CAM-01:CAM:Acquire 1
167+
168+
# Final setup
169+
170+
- type: epics.PostStartupCommand
171+
command: epicsThreadSleep(1.0)

example/t01-services/services/bl01t-ea-ioc-01/config/fastcs.yaml renamed to example/t01-services/services/bl01t-ea-temp-01/config/fastcs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# yaml-language-server: $schema=schema.json
22
controllers:
3-
- name: BL01T-EA-TEST-01
3+
- name: BL01T-EA-TEMP-01
44
type: fastcs.TemperatureController
55
ip_settings:
66
ip: "localhost"

example/t01-services/services/bl01t-mo-ioc-01/config/ioc.yaml renamed to example/t01-services/services/bl01t-mo-motor-01/config/ioc.yaml

File renamed without changes.
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<display version="2.0.0">
3+
<name>dcam1</name>
4+
<widget type="group" version="2.0.0">
5+
<name>Diagnostic Camera 1</name>
6+
<x>0</x>
7+
<y>0</y>
8+
<width>930</width>
9+
<height>590</height>
10+
<widget type="embedded" version="2.0.0">
11+
<name>CAM</name>
12+
<width>880</width>
13+
<height>470</height>
14+
<file>techui-support/bob/ADAravis/ADAravis_summary.bob</file>
15+
<macros>
16+
<P>BL01T-DI-CAM-01</P>
17+
<R>:CAM:</R>
18+
<label>CAM</label>
19+
<IOC>https://t01-opis.diamond.ac.uk/bl01t-di-cam-01</IOC>
20+
</macros>
21+
<x>0</x>
22+
<y>0</y>
23+
</widget>
24+
<widget type="action_button" version="2.0.0">
25+
<name>CAM</name>
26+
<width>100</width>
27+
<height>40</height>
28+
<pv_name/>
29+
<text>CAM</text>
30+
<actions>
31+
<action type="open_display">
32+
<description>Open Display</description>
33+
<macros>
34+
<P>BL01T-DI-CAM-01</P>
35+
<R>:CAM:</R>
36+
<label>CAM</label>
37+
</macros>
38+
<file>techui-support/bob/ADAravis/ADAravis_detail.bob</file>
39+
<target>tab</target>
40+
</action>
41+
</actions>
42+
<x>0</x>
43+
<y>500</y>
44+
</widget>
45+
<widget type="action_button" version="2.0.0">
46+
<name>ROI</name>
47+
<width>100</width>
48+
<height>40</height>
49+
<pv_name/>
50+
<text>ROI</text>
51+
<actions>
52+
<action type="open_display">
53+
<description>Open Display</description>
54+
<macros>
55+
<P>BL01T-DI-CAM-01</P>
56+
<R>:ROI:</R>
57+
<label>ROI</label>
58+
</macros>
59+
<file>techui-support/bob/ADAravis/NDPluginROI.pvi.bob</file>
60+
<target>tab</target>
61+
</action>
62+
</actions>
63+
<x>120</x>
64+
<y>500</y>
65+
</widget>
66+
<widget type="action_button" version="2.0.0">
67+
<name>STAT</name>
68+
<width>100</width>
69+
<height>40</height>
70+
<pv_name/>
71+
<text>STAT</text>
72+
<actions>
73+
<action type="open_display">
74+
<description>Open Display</description>
75+
<macros>
76+
<P>BL01T-DI-CAM-01</P>
77+
<R>:STAT:</R>
78+
<label>STAT</label>
79+
</macros>
80+
<file>techui-support/bob/ADAravis/NDPluginStats.pvi.bob</file>
81+
<target>tab</target>
82+
</action>
83+
</actions>
84+
<x>240</x>
85+
<y>500</y>
86+
</widget>
87+
<widget type="action_button" version="2.0.0">
88+
<name>HDF5</name>
89+
<width>100</width>
90+
<height>40</height>
91+
<pv_name/>
92+
<text>HDF5</text>
93+
<actions>
94+
<action type="open_display">
95+
<description>Open Display</description>
96+
<macros>
97+
<P>BL01T-DI-CAM-01</P>
98+
<R>:HDF5:</R>
99+
<label>HDF5</label>
100+
</macros>
101+
<file>techui-support/bob/ADAravis/NDFileHDF5.pvi.bob</file>
102+
<target>tab</target>
103+
</action>
104+
</actions>
105+
<x>360</x>
106+
<y>500</y>
107+
</widget>
108+
</widget>
109+
</display>

example/t01-services/synoptic/index.bob

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version='1.0' encoding='UTF-8'?>
22
<display version="2.0.0">
33
<name>Display</name>
44
<widget type="symbol" version="2.0.0">
@@ -21,7 +21,7 @@
2121
</widget>
2222
<widget type="symbol" version="2.0.0">
2323
<name>MotorController</name>
24-
<pv_name>d1</pv_name>
24+
<pv_name>diode1</pv_name>
2525
<symbols>
2626
<symbol>techui-support/symbols/diag-stick.svg</symbol>
2727
</symbols>
@@ -39,7 +39,7 @@
3939
</widget>
4040
<widget type="symbol" version="2.0.0">
4141
<name>TempController</name>
42-
<pv_name>motor</pv_name>
42+
<pv_name>motor1</pv_name>
4343
<symbols>
4444
<symbol>techui-support/symbols/aperture.svg</symbol>
4545
</symbols>
@@ -64,14 +64,14 @@
6464
</widget>
6565
<widget type="label" version="2.0.0">
6666
<name>Label_1</name>
67-
<text>D1</text>
67+
<text>DIODE1</text>
6868
<x>250</x>
6969
<y>120</y>
7070
<horizontal_alignment>1</horizontal_alignment>
7171
</widget>
7272
<widget type="label" version="2.0.0">
7373
<name>Label_2</name>
74-
<text>Motor</text>
74+
<text>Motor1</text>
7575
<x>460</x>
7676
<y>120</y>
7777
<horizontal_alignment>1</horizontal_alignment>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<display version="2.0.0">
3+
<name>motor1</name>
4+
<widget type="group" version="2.0.0">
5+
<name>Motor Stage</name>
6+
<x>0</x>
7+
<y>0</y>
8+
<width>270</width>
9+
<height>390</height>
10+
<widget type="embedded" version="2.0.0">
11+
<name>X1</name>
12+
<width>220</width>
13+
<height>120</height>
14+
<file>techui-support/bob/pmac/motor_embed.bob</file>
15+
<macros>
16+
<P>BL01T-MO-MOTOR-01</P>
17+
<M>:X</M>
18+
<label>X1</label>
19+
<IOC>https://t01-opis.diamond.ac.uk/bl01t-mo-motor-01</IOC>
20+
</macros>
21+
<x>0</x>
22+
<y>0</y>
23+
</widget>
24+
<widget type="embedded" version="2.0.0">
25+
<name>A</name>
26+
<width>220</width>
27+
<height>120</height>
28+
<file>techui-support/bob/pmac/motor_embed.bob</file>
29+
<macros>
30+
<P>BL01T-MO-MOTOR-01</P>
31+
<M>:A</M>
32+
<label>A</label>
33+
<IOC>https://t01-opis.diamond.ac.uk/bl01t-mo-motor-01</IOC>
34+
</macros>
35+
<x>0</x>
36+
<y>150</y>
37+
</widget>
38+
<widget type="action_button" version="2.0.0">
39+
<name>pmac.GeoBrick</name>
40+
<width>100</width>
41+
<height>40</height>
42+
<pv_name/>
43+
<text>pmac.GeoBrick</text>
44+
<actions>
45+
<action type="open_display">
46+
<description>Open Display</description>
47+
<macros>
48+
<P>BL01T-MO-BRICK-01</P>
49+
</macros>
50+
<file>techui-support/bob/pmac/pmacController.bob</file>
51+
<target>tab</target>
52+
</action>
53+
</actions>
54+
<x>0</x>
55+
<y>300</y>
56+
</widget>
57+
</widget>
58+
</display>

0 commit comments

Comments
 (0)