Skip to content

Commit

Permalink
add NDFileTIFF pvi
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Jun 21, 2024
1 parent a84418e commit 4fd46cd
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ADCore/ADCore.ibek.support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
220 changes: 220 additions & 0 deletions ADCore/NDFileTIFF.pvi.device.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions pvi-generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fd46cd

Please sign in to comment.