-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathADSimDetector.ibek.support.yaml
69 lines (64 loc) · 1.69 KB
/
ADSimDetector.ibek.support.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# yaml-language-server: $schema=https://github.com/epics-containers/ibek/releases/download/3.0.1/ibek.support.schema.json
module: ADSimDetector
entity_models:
- name: simDetector
description: |-
Creates a simulation detector
parameters:
P:
type: str
description: Device Prefix
R:
type: str
description: Device Suffix
PORT:
type: id
description: Port name for the detector
TIMEOUT:
type: str
description: Timeout
default: "1"
ADDR:
type: str
default: "0"
description: Asyn Port address
WIDTH:
type: int
default: 1280
description: Image Width
HEIGHT:
type: int
default: 1024
description: Image Height
DATATYPE:
type: int
description: Datatype
default: 1
BUFFERS:
type: int
description: Maximum number of NDArray buffers to be created for plugin callbacks
default: 50
MEMORY:
type: int
description: Max memory to allocate, should be maxw*maxh*nbuffer for driver and all attached plugins
default: 0
pre_init:
- type: text
value: |
# simDetectorConfig(portName, maxSizeX, maxSizeY, dataType, maxBuffers, maxMemory)
simDetectorConfig("{{PORT}}", {{WIDTH}}, {{HEIGHT}}, {{DATATYPE}}, {{BUFFERS}}, {{MEMORY}})
databases:
- file: $(ADSIMDETECTOR)/db/simDetector.template
args:
P:
R:
PORT:
TIMEOUT:
ADDR:
pvi:
yaml_path: simDetector.pvi.device.yaml
ui_macros:
P:
R:
pv: true
pv_prefix: $(P)$(R)