Skip to content

Commit

Permalink
latest auto generated support YAML with commented missing Args
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Sep 25, 2023
1 parent a5739cb commit d9145d6
Show file tree
Hide file tree
Showing 3 changed files with 257 additions and 175 deletions.
40 changes: 16 additions & 24 deletions ADCore/ADCore.ibek.support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ defs:

databases:
- file: $(ADCORE)/db/NDStats.template
args:
args: # TODO - MISSING ARGS: SCANRATE, TS_PORT
NDARRAY_PORT:
ADDR:
SCANRATE:
Expand All @@ -397,7 +397,6 @@ defs:
XSIZE:
TS_PORT:
PORT:
warning: 'Database Args missing: SCANRATE, TS_PORT'

pre_init:
- type: text
Expand All @@ -412,7 +411,7 @@ defs:
# NDTimeSeriesConfigure(portName, queueSize, blockingCallbacks, NDArrayPort, NDArrayAddr, maxSignals)
NDTimeSeriesConfigure("{{PORT}}_TS", {{QUEUE}}, {{BLOCK}}, "{{PORT}}", 1, 23)
# Load time series records
dbLoadRecords("$(ADCORE)/db/NDTimeSeries.template", "P={P},R={R}, PORT={PORT} ,ADDR={ADDR},TIMEOUT={TIMEOUT},NDARRAY_PORT={NDARRAY_PORT},NDARRAY_ADDR={NDARRAY_ADDR},NCHANS={NCHANS},ENABLED={ENABLED}")
dbLoadRecords("$(ADCORE)/db/NDTimeSeries.template", "P={{P}},R={{R}}, PORT={{PORT}} ,ADDR={{ADDR}},TIMEOUT={{TIMEOUT}},NDARRAY_PORT={{NDARRAY_PORT}},NDARRAY_ADDR={{NDARRAY_ADDR}},NCHANS={{NCHANS}},ENABLED={{ENABLED}}")
- name: NDOverlay
description: |-
Expand Down Expand Up @@ -466,7 +465,7 @@ defs:

databases:
- file: $(ADCORE)/db/NDOverlayN.template
args:
args: # TODO - MISSING ARGS: XPOS, NAME, YWIDTH, YSIZE, YPOS, O, SHAPE, XSIZE, XCENT, YCENT, XWIDTH
XPOS:
NAME:
YWIDTH:
Expand All @@ -483,8 +482,6 @@ defs:
XSIZE:
PORT:
ADDR:
warning: 'Database Args missing: XPOS, NAME, YWIDTH, YSIZE, YPOS, O, SHAPE, XSIZE,
XCENT, XWIDTH, YCENT'
- file: $(ADCORE)/db/NDOverlay.template
args:
SCANRATE:
Expand All @@ -502,7 +499,7 @@ defs:
value: |
# NDOverlayConfigure(portName, queueSize, blockingCallbacks, NDArrayPort, NDArrayAddr, NOverlays, maxBuffers, maxMemory, priority, stackSize, maxThreads)
NDOverlayConfigure("{{PORT}}", {{QUEUE}}, {{BLOCK}}, "{{NDARRAY_PORT}}", {{NDARRAY_ADDR}}, {{NOverlays}}, 0, 0, 0, 0, {{MAX_THREADS}})
warning: 'function Args missing: NOverlays'
# TODO - MISSING ARGS: NOverlays

- name: NDFileNetCDF
description: |-
Expand Down Expand Up @@ -1080,15 +1077,14 @@ defs:
TIMEOUT:
PORT:
- file: $(ADCORE)/db/NDTimeSeriesN.template
args:
args: # TODO - MISSING ARGS: NAME
ADDR:
NCHANS:
P:
R:
TIMEOUT:
PORT:
NAME:
warning: 'Database Args missing: NAME'

pre_init:
- type: text
Expand Down Expand Up @@ -1148,12 +1144,11 @@ defs:

databases:
- file: $(ADCORE)/db/NDAttrPlotAttr.template
args:
args: # TODO - MISSING ARGS: ATTR_IND
P:
R:
PORT:
ATTR_IND:
warning: 'Database Args missing: ATTR_IND'
- file: $(ADCORE)/db/NDAttrPlot.template
args:
SCANRATE:
Expand All @@ -1166,21 +1161,20 @@ defs:
TIMEOUT:
PORT:
- file: $(ADCORE)/db/NDAttrPlotData.template
args:
args: # TODO - MISSING ARGS: DATA_IND, DATA_ADDR, AXIS
DATA_ADDR:
P:
DATA_IND:
R:
N_CACHE:
PORT:
AXIS:
warning: 'Database Args missing: DATA_IND, AXIS, DATA_ADDR'

pre_init:
- type: text
value: |
NDAttrPlotConfig("{{PORT}}", {{N_ATTRS}}, {{N_CACHE}},
warning: 'function Args missing: N_ATTRS'
# TODO - MISSING ARGS: N_ATTRS

- name: NDFileTIFF
description: |-
Expand Down Expand Up @@ -1447,15 +1441,14 @@ defs:

databases:
- file: $(ADCORE)/db/NDAttributeN.template
args:
args: # TODO - MISSING ARGS: TS_PORT
ADDR:
NCHANS:
P:
R:
TIMEOUT:
TS_PORT:
PORT:
warning: 'Database Args missing: TS_PORT'
- file: $(ADCORE)/db/NDAttribute.template
args:
SCANRATE:
Expand All @@ -1477,11 +1470,12 @@ defs:
- type: text
value: |
# NDAttrConfigure(portName, queueSize, blockingCallbacks,
NDAttrConfigure("{PORT}", {QUEUE}, {BLOCK},
NDAttrConfigure("{{PORT}}", {{QUEUE}}, {{BLOCK}},
# NDTimeSeriesConfigure(portName, queueSize, blockingCallbacks, NDArrayPort, NDArrayAddr, maxSignals)
NDTimeSeriesConfigure("{PORT:s}_TS", {QUEUE:d}, {BLOCK:d}, "{PORT:s}", 1, {MAX_ATTRIBUTES:d})
NDTimeSeriesConfigure("{{PORT}}_TS", {{QUEUE}}, {{BLOCK}}, "{{PORT}}", 1, {{MAX_ATTRIBUTES}})
# Load time series records
dbLoadRecords("$(ADCORE)/db/NDTimeSeries.template","P={P},R={R_TS},PORT={PORT}_TS,ADDR=0,TIMEOUT={TIMEOUT},NDARRAY_PORT={PORT},NDARRAY_ADDR=1,NCHANS={MAX_ATTRIBUTES},ENABLED=1")
dbLoadRecords("$(ADCORE)/db/NDTimeSeries.template","P={{P}},R={{R_TS}},PORT={{PORT}}_TS,ADDR=0,TIMEOUT={{TIMEOUT}},NDARRAY_PORT={{PORT}},NDARRAY_ADDR=1,NCHANS={{MAX_ATTRIBUTES}},ENABLED=1")
# TODO - MISSING ARGS: R_TS

- name: NDPosPlugin
description: |-
Expand Down Expand Up @@ -1832,7 +1826,7 @@ defs:

databases:
- file: $(ADCORE)/db/NDGatherN.template
args:
args: # TODO - MISSING ARGS: N
NDARRAY_PORT:
ADDR:
NDARRAY_ADDR:
Expand All @@ -1841,9 +1835,8 @@ defs:
R:
TIMEOUT:
PORT:
warning: 'Database Args missing: N'
- file: $(ADCORE)/db/NDGather.template
args:
args: # TODO - MISSING ARGS: MAX_PORTS
SCANRATE:
ADDR:
NDARRAY_PORT:
Expand All @@ -1854,7 +1847,6 @@ defs:
R:
TIMEOUT:
PORT:
warning: 'Database Args missing: MAX_PORTS'

- name: NDROIStat
description: |-
Expand Down Expand Up @@ -1940,4 +1932,4 @@ defs:
- type: text
value: |
# NDROIStatConfigure(portName, queueSize, blockingCallbacks,
NDROIStatConfigure("{PORT}", {QUEUE}, {BLOCK},
NDROIStatConfigure("{{PORT}}", {{QUEUE}}, {{BLOCK}},
Loading

0 comments on commit d9145d6

Please sign in to comment.