Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Run techui-builder",
"name": "Run techui-builder build",
"type": "debugpy",
"request": "launch",
"justMyCode": true,
Expand All @@ -14,5 +14,15 @@
"console": "integratedTerminal",
"args": "build ${workspaceFolder}/example/t01-services/synoptic/techui.yaml"
},
{
"name": "Run techui-builder status",
"type": "debugpy",
"request": "launch",
"justMyCode": true,
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/src/techui_builder/__main__.py",
"console": "integratedTerminal",
"args": "status ${workspaceFolder}/example/t01-services/synoptic/techui.yaml"
},
]
}
171 changes: 171 additions & 0 deletions example/t01-services/services/bl01t-di-cam-01/config/ioc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
# yaml-language-server: $schema=/epics/ibek-defs/ioc.schema.json

ioc_name: "{{ _global.get_env('IOC_NAME') }}"

description: auto-generated by https://github.com/epics-containers/builder2ibek

entities:
- type: epics.EpicsEnvSet
name: EPICS_TS_MIN_WEST
value: "0"

- type: epics.EpicsCaMaxArrayBytes
max_bytes: 100000000

- type: devIocStats.iocAdminSoft
IOC: "{{ ioc_name | upper }}"

- type: autosave.Autosave
P: "{{ ioc_name | upper }}:"

- type: ADAravis.aravisCamera
BUFFERS: 200
CLASS: AutoADGenICam
ID: 127.0.0.1
P: BL01T-DI-CAM-01
PORT: DCAM1.cam
R: ":CAM:"

- type: ADAravis.aravisSettings
camera: DCAM1.cam

- type: ADCore.NDROI
ADDR: 0
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.cam
P: BL01T-DI-CAM-01
PORT: DCAM1.roi
QUEUE: 16
R: ":ROI:"
TIMEOUT: 1

- type: ADCore.NDStats
ADDR: 0
HIST_SIZE: 65535
NCHANS: 20000
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.cam
P: BL01T-DI-CAM-01
PORT: DCAM1.stat
QUEUE: 16
R: ":STAT:"
TIMEOUT: 1
XSIZE: 1292
YSIZE: 964

- type: ADCore.NDStdArrays
ADDR: 0
FTVL: UCHAR
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.roi
NELEMENTS: 1245488
P: BL01T-DI-CAM-01
PORT: DCAM1.arr
QUEUE: 2
R: ":ARR:"
TIMEOUT: 1
TYPE: Int8

- type: ADCore.NDProcess
ADDR: 0
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.cam
P: BL01T-DI-CAM-01
PORT: DCAM1.proc
QUEUE: 16
R: ":PROC:"
TIMEOUT: 1

- type: ADCore.NDOverlay
ADDR: 0
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.proc
P: BL01T-DI-CAM-01
PORT: DCAM1.over
QUEUE: 16
R: ":OVER:"
TIMEOUT: 1

- type: ADCore.NDFileTIFF
ADDR: 0
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.cam
P: BL01T-DI-CAM-01
PORT: DCAM1.tiff
QUEUE: 16
R: ":TIFF:"
TIMEOUT: 1

- type: ADCore.NDFileHDF5
ADDR: 0
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.cam
P: BL01T-DI-CAM-01
PORT: DCAM1.hdf
QUEUE: 16
R: ":HDF5:"
TIMEOUT: 1

- type: ADCore.NDColorConvert
ADDR: 0
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.cam
P: BL01T-DI-CAM-01
PORT: DCAM1.cc
QUEUE: 4
R: ":CC:"
TIMEOUT: 1

- type: ADCore.NDTransform
ADDR: 0
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.cam
P: BL01T-DI-CAM-01
PORT: DCAM1.trans
R: ":TRANS:"
TIMEOUT: 1

- type: ffmpegServer.ffmpegStream
NDARRAY_ADDR: 0
NDARRAY_PORT: DCAM1.cam
P: BL01T-DI-CAM-01
PORT: DCAM1.mjpg
R: ":MJPG:"

# Initial settings

- type: epics.StartupCommand
command: dbLoadRecords("/epics/ioc/config/devsta.db")

- type: epics.PostStartupCommand
command: callbackSetQueueSize(100000)

- type: epics.PostStartupCommand
command: dbpf BL01T-DI-CAM-01:CAM:GC_GevSCPSPacketSize 1500

- type: epics.PostStartupCommand
command: dbpf BL01T-DI-CAM-01:CAM:GC_StrBytesPerSecond 55000000

# MJPG

- type: epics.PostStartupCommand
command: dbpf BL01T-DI-CAM-01:MJPG:NDArrayPort DCAM1.cam

- type: epics.PostStartupCommand
command: dbpf BL01T-DI-CAM-01:MJPG:EnableCallbacks Enable

- type: epics.PostStartupCommand
command: dbpf BL01T-DI-CAM-01:MJPG:MAXW 1456

- type: epics.PostStartupCommand
command: dbpf BL01T-DI-CAM-01:MJPG:MAXH 1088

# CAM

- type: epics.PostStartupCommand
command: dbpf BL01T-DI-CAM-01:CAM:Acquire 1

# Final setup

- type: epics.PostStartupCommand
command: epicsThreadSleep(1.0)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=schema.json
controllers:
- name: BL01T-EA-TEST-01
- name: BL01T-EA-TEMP-01
type: fastcs.TemperatureController
ip_settings:
ip: "localhost"
Expand Down
101 changes: 101 additions & 0 deletions example/t01-services/synoptic/JsonMap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"file": "index.bob",
"children": [
{
"file": "dcam1.bob",
"children": [
{
"file": "ProfileCursorGraphs.bob",
"macros": {
"P": "BL01T-DI-CAM-01",
"R": ":CAM:",
"label": "CAM",
"IOC": "https://t01-opis.diamond.ac.uk/bl01t-di-cam-01"
},
"displayName": "CAM"
},
{
"file": "techui-support/bob/ADAravis/ADAravis_detail.bob",
"macros": {
"P": "BL01T-DI-CAM-01",
"R": ":CAM:",
"label": "CAM"
},
"displayName": "ADAravis Camera"
},
{
"file": "techui-support/bob/ADAravis/NDPluginROI.pvi.bob",
"macros": {
"P": "BL01T-DI-CAM-01",
"R": ":ROI:",
"label": "ROI"
},
"displayName": "NDPluginROI"
},
{
"file": "techui-support/bob/ADAravis/NDPluginStats.pvi.bob",
"macros": {
"P": "BL01T-DI-CAM-01",
"R": ":STAT:",
"label": "STAT"
},
"displayName": "NDPluginStats"
},
{
"file": "techui-support/bob/ADAravis/NDFileHDF5.pvi.bob",
"macros": {
"P": "BL01T-DI-CAM-01",
"R": ":HDF5:",
"label": "HDF5"
},
"displayName": "NDFileHDF5"
}
],
"displayName": "Diagnostic Camera 1"
},
{
"file": "test.bob",
"exists": false,
"displayName": "Diode 1"
},
{
"file": "temp1.bob",
"exists": false,
"displayName": "Temperaure Controller 1"
},
{
"file": "motor1.bob",
"children": [
{
"file": "$(IOC)/pmacAxis.pvi.bob",
"macros": {
"M": ":X",
"P": "BL01T-MO-MOTOR-01",
"label": "X1",
"IOC": "https://t01-opis.diamond.ac.uk/bl01t-mo-motor-01"
},
"displayName": "X1"
},
{
"file": "$(IOC)/pmacAxis.pvi.bob",
"macros": {
"M": ":A",
"P": "BL01T-MO-MOTOR-01",
"label": "A",
"IOC": "https://t01-opis.diamond.ac.uk/bl01t-mo-motor-01"
},
"displayName": "A"
},
{
"file": "techui-support/bob/pmac/pmacController.bob",
"macros": {
"P": "BL01T-MO-BRICK-01"
},
"displayName": "pmacController"
}
],
"displayName": "Motor Stage"
}
],
"displayName": "Display"
}
41 changes: 41 additions & 0 deletions example/t01-services/synoptic/config/status.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
###################################################
## THIS FILE HAS BEEN AUTOGENERATED; DO NOT EDIT ##
###################################################

record(calc, "BL01T-EA-FSHTR-01:STA")
{
field(ACKT, "NO")
field(CALC, "(A|B|C|D|E|F|G|H|I|J|K|L)>0?1:0")
field(INPA, "BL01T-EA-FSHTR-01:FSHTR1.STAT")
field(INPB, "")
field(INPC, "")
field(INPD, "")
field(INPE, "")
field(INPF, "")
field(INPG, "")
field(INPH, "")
field(INPI, "")
field(INPJ, "")
field(INPK, "")
field(INPL, "")
field(SCAN, "1 second")
}

record(calc, "BL01T-DI-CAM-01:STA")
{
field(ACKT, "NO")
field(CALC, "(A|B|C|D|E|F|G|H|I|J|K|L)>0?1:0")
field(INPA, "BL01T-DI-CAM-01:CAM:DetectorState_RBV")
field(INPB, "")
field(INPC, "")
field(INPD, "")
field(INPE, "")
field(INPF, "")
field(INPG, "")
field(INPH, "")
field(INPI, "")
field(INPJ, "")
field(INPK, "")
field(INPL, "")
field(SCAN, "1 second")
}
Loading