Skip to content
Open
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
1 change: 1 addition & 0 deletions NCINDG/iocBoot/iocNCINDG-IOC-01/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<macro name ="INDEX_6" pattern="^[0-9]$" description="Index of digitiser 6." hasDefault="NO" />
<macro name ="INDEX_7" pattern="^[0-9]$" description="Index of digitiser 7." hasDefault="NO" />
<macro name ="SYNCPREFIX" pattern="^.*:$" description="Prefix of instrument to sync start/stop from e.g. IN:HIFI:" hasDefault="NO" />
<macro name ="SAVEFILES" pattern="^(YES|NO)$" description="Save on screen graphs at end" hasDefault="YES" defaultValue="NO" />
</macros>
<pvsets />
</config_part>
Expand Down
3 changes: 2 additions & 1 deletion NCINDG/iocBoot/iocNCINDG-IOC-01/liveview.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ NDStdArraysConfigure("AD$(DIG)$(LVDET)IM1", 3, 0, "AD$(DIG)$(LVDET)ROI1", 0, 0)
NDStatsConfigure("AD$(DIG)$(LVDET)ST1", 3, 0, "AD$(DIG)$(LVDET)ROI1", 0, 0)
NDTimeSeriesConfigure("AD$(DIG)$(LVDET)ST1_TS", 100, 0, "AD$(DIG)$(LVDET)ROI1", 0, 22, 0, 0, 0, 0)
NDPvaConfigure("AD$(DIG)$(LVDET)PVA1", 3, 0, "AD$(DIG)$(LVDET)ROI1", 0, "$(MYPVPREFIX)$(IOCNAME):D$(DIG):AD$(LVDET):pva1:pvadata", 0)
NDFileHDF5Configure("AD$(DIG)$(LVDET)FILE", 3, 0, "AD$(DIG)$(LVDET)ROI1", 0, 0, 0, 0)
$(IFSAVEFILES=#) NDFileHDF5Configure("AD$(DIG)$(LVDET)FILE", 3, 0, "AD$(DIG)$(LVDET)ROI1", 0, 0, 0, 0)
$(IFNOTSAVEFILES=) NDFileNullConfigure ("AD$(DIG)$(LVDET)FILE", 3, 0, "AD$(DIG)$(LVDET)ROI1", 0, 0, 0, 0)

## needs to fit in EPICS_CA_MAX_ARRAY_BYTES i.e. nx * ny * pixelsize
## also NELEMENTS needs to at least nx * ny
Expand Down
2 changes: 2 additions & 0 deletions NCINDG/iocBoot/iocNCINDG-IOC-01/st-common.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ stringiftest("DIGIP5", "$(IP_ADDR_5=)", 3)
stringiftest("DIGIP6", "$(IP_ADDR_6=)", 3)
stringiftest("DIGIP7", "$(IP_ADDR_7=)", 3)

stringiftest("SAVEFILES", "$(SAVEFILES=NO)", 5, "YES")

$(IFDIGIP0) iocshLoad "${TOP}/iocBoot/iocNCINDG-IOC-01/st-dig.cmd", "DIG=0,IP_ADDR=$(IP_ADDR_0=),INDEX=$(INDEX_0=)"
$(IFDIGIP1) iocshLoad "${TOP}/iocBoot/iocNCINDG-IOC-01/st-dig.cmd", "DIG=1,IP_ADDR=$(IP_ADDR_1=),INDEX=$(INDEX_1=)"
$(IFDIGIP2) iocshLoad "${TOP}/iocBoot/iocNCINDG-IOC-01/st-dig.cmd", "DIG=2,IP_ADDR=$(IP_ADDR_2=),INDEX=$(INDEX_2=)"
Expand Down