From 4fd46cdb7ec1cf479a3a4b57eef4d99700586fe8 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Fri, 21 Jun 2024 14:45:43 +0100 Subject: [PATCH] add NDFileTIFF pvi --- ADCore/ADCore.ibek.support.yaml | 8 ++ ADCore/NDFileTIFF.pvi.device.yaml | 220 ++++++++++++++++++++++++++++++ pvi-generate.sh | 3 + 3 files changed, 231 insertions(+) create mode 100644 ADCore/NDFileTIFF.pvi.device.yaml diff --git a/ADCore/ADCore.ibek.support.yaml b/ADCore/ADCore.ibek.support.yaml index 7ce2e39..8868639 100644 --- a/ADCore/ADCore.ibek.support.yaml +++ b/ADCore/ADCore.ibek.support.yaml @@ -2398,6 +2398,14 @@ defs: # NDFileTIFFConfigure(portName, queueSize, blockingCallbacks, NDArrayPort, NDArrayAddr) NDFileTIFFConfigure("{{PORT}}", {{QUEUE}}, {{BLOCK}}, "{{NDARRAY_PORT}}", {{NDARRAY_ADDR}}) + pvi: + yaml_path: NDFileTIFF.pvi.device.yaml + ui_macros: + P: + R: + pv: true + pv_prefix: "$(P)$(R)" + - name: NDGather8 description: |- This plugin is used to gather NDArrays from multiple upstream plugins and merge them into a single stream diff --git a/ADCore/NDFileTIFF.pvi.device.yaml b/ADCore/NDFileTIFF.pvi.device.yaml new file mode 100644 index 0000000..b7c4f64 --- /dev/null +++ b/ADCore/NDFileTIFF.pvi.device.yaml @@ -0,0 +1,220 @@ +label: NDFileTIFF +parent: NDPluginFile +children: + +- type: Group + name: ADPlugins + layout: + type: Grid + labelled: true + children: + + - type: SignalRW + name: AutoSave + write_pv: $(P)$(R)AutoSave + write_widget: + type: ToggleButton + read_pv: $(P)$(R)AutoSave_RBV + read_widget: + type: LED + +- type: Group + name: NDBadPixel + layout: + type: Grid + labelled: true + children: + + - type: SignalRW + name: FileName + write_pv: $(P)$(R)FileName + write_widget: + type: TextWrite + format: 4 + read_pv: $(P)$(R)FileName_RBV + read_widget: + type: TextRead + format: 4 + +- type: Group + name: NDCircularBuff + layout: + type: Grid + labelled: true + children: + + - type: SignalRW + name: Capture + write_pv: $(P)$(R)Capture + write_widget: + type: ToggleButton + read_pv: $(P)$(R)Capture_RBV + read_widget: + type: LED + +- type: Group + name: NDFile + layout: + type: Grid + labelled: true + children: + + - type: SignalRW + name: FileFormat + write_pv: $(P)$(R)FileFormat + write_widget: + type: ComboBox + read_pv: $(P)$(R)FileFormat_RBV + read_widget: + type: TextRead + +- type: Group + name: NDFileBase + layout: + type: Grid + labelled: true + children: + + - type: SignalR + name: FilePathExists + read_pv: $(P)$(R)FilePathExists_RBV + read_widget: + type: LED + + - type: SignalRW + name: FilePath + write_pv: $(P)$(R)FilePath + write_widget: + type: TextWrite + format: 4 + read_pv: $(P)$(R)FilePath_RBV + read_widget: + type: TextRead + format: 4 + + - type: SignalRW + name: CreateDirectory + write_pv: $(P)$(R)CreateDirectory + write_widget: + type: TextWrite + read_pv: $(P)$(R)CreateDirectory_RBV + read_widget: + type: TextRead + + - type: SignalRW + name: FileNumber + write_pv: $(P)$(R)FileNumber + write_widget: + type: TextWrite + read_pv: $(P)$(R)FileNumber_RBV + read_widget: + type: TextRead + + - type: SignalRW + name: TempSuffix + write_pv: $(P)$(R)TempSuffix + write_widget: + type: TextWrite + read_pv: $(P)$(R)TempSuffix_RBV + read_widget: + type: TextRead + + - type: SignalRW + name: LazyOpen + write_pv: $(P)$(R)LazyOpen + write_widget: + type: ToggleButton + read_pv: $(P)$(R)LazyOpen_RBV + read_widget: + type: LED + + - type: SignalRW + name: AutoIncrement + write_pv: $(P)$(R)AutoIncrement + write_widget: + type: ToggleButton + read_pv: $(P)$(R)AutoIncrement_RBV + read_widget: + type: LED + + - type: SignalRW + name: FileTemplate + write_pv: $(P)$(R)FileTemplate + write_widget: + type: TextWrite + format: 4 + read_pv: $(P)$(R)FileTemplate_RBV + read_widget: + type: TextRead + format: 4 + + - type: SignalR + name: FullFileName + read_pv: $(P)$(R)FullFileName_RBV + read_widget: + type: TextRead + format: 4 + + - type: SignalRW + name: WriteFile + write_pv: $(P)$(R)WriteFile + write_widget: + type: ToggleButton + read_pv: $(P)$(R)WriteFile_RBV + read_widget: + type: LED + + - type: SignalRW + name: ReadFile + write_pv: $(P)$(R)ReadFile + write_widget: + type: ToggleButton + read_pv: $(P)$(R)ReadFile_RBV + read_widget: + type: LED + + - type: SignalR + name: NumCaptured + read_pv: $(P)$(R)NumCaptured_RBV + read_widget: + type: TextRead + + - type: SignalRW + name: FileWriteMode + write_pv: $(P)$(R)FileWriteMode + write_widget: + type: ComboBox + read_pv: $(P)$(R)FileWriteMode_RBV + read_widget: + type: TextRead + + - type: SignalRW + name: NumCapture + write_pv: $(P)$(R)NumCapture + write_widget: + type: TextWrite + read_pv: $(P)$(R)NumCapture_RBV + read_widget: + type: TextRead + + - type: SignalRW + name: DeleteDriverFile + write_pv: $(P)$(R)DeleteDriverFile + write_widget: + type: ToggleButton + read_pv: $(P)$(R)DeleteDriverFile_RBV + read_widget: + type: LED + + - type: SignalR + name: WriteStatus + read_pv: $(P)$(R)WriteStatus + read_widget: + type: LED + + - type: SignalR + name: WriteMessage + read_pv: $(P)$(R)WriteMessage + read_widget: + type: TextRead + format: 4 diff --git a/pvi-generate.sh b/pvi-generate.sh index da7caf1..63cfd34 100755 --- a/pvi-generate.sh +++ b/pvi-generate.sh @@ -53,6 +53,9 @@ pvi regroup NDPluginPva.pvi.device.yaml ${ADCORE}/ADApp/op/adl/*.adl pvi convert device --template ${ADCORE}/db/NDFileHDF5.template --template ${ADCORE}/db/NDFile.template . ${ADCORE}/ADApp/pluginSrc/NDFileHDF5.h pvi regroup NDFileHDF5.pvi.device.yaml ${ADCORE}/ADApp/op/adl/*.adl +pvi convert device --template ${ADCORE}/db/NDFileTIFF.template --template ${ADCORE}/db/NDFile.template . ${ADCORE}/ADApp/pluginSrc/NDFileTIFF.h +pvi regroup NDFileTIFF.pvi.device.yaml ${ADCORE}/ADApp/op/adl/*.adl + ADGenICam=/epics/support/ADGenICam cd ${ADGenICam} ./addCamera.sh AVT_Manta_1_44