From 893b2f5e7ec3890858e7fbff72ecbe59d5b51bc1 Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Mon, 13 Jul 2026 16:59:08 +0200 Subject: [PATCH] chore: nturns template records --- services/nturns/current/ioc/NTURNS.template | 105 ++++++++++++++------ 1 file changed, 73 insertions(+), 32 deletions(-) diff --git a/services/nturns/current/ioc/NTURNS.template b/services/nturns/current/ioc/NTURNS.template index 857d84a..8bbec24 100644 --- a/services/nturns/current/ioc/NTURNS.template +++ b/services/nturns/current/ioc/NTURNS.template @@ -1,37 +1,78 @@ -# This is a template for preaparing an IOC providing BD Service specific PVs -# Access Security Groups: -# DEFAULT - logt wenn EGU oder so veraendert werden -# LOG - logt wenn neuer wert geschrieben wird -# PROTECTED - verhindert versuchte caputs auf alle fields ausser VAL -# READONLY - verhindert versuchte caputs und aktiviert caputlog -# Input links can specify CA, CP, or CPP. -# If the input link specifies CA, it will be forced to be a Channel Access link. -# If the input link specifies CP, it will also be forced to be a Channel Access link; in addition, it will cause the record containing the input link to process whenever a monitor is posted, no matter what the record's SCAN field specifies. -# If the input link specifies CPP, it means the same thing as CP, except that the record will be processed if and only if the record itself specifies passive in its SCAN field. Output links can specify CA, which will simply cause them to be Channel Access links. -# +# Specific BD-Service PVs -record(ao, "$(DEVICE):AO") { - field(DESC, "Analog Output Record (ao)") - field(ASG, "PROTECTED") - field(VAL, "0") - field(PINI, "YES") +record(ao, "$(DEVICE):CONTROL-80-NPOINTS") { + field(DESC, "Controls peakfinder points to use") + field(VAL, "-1") + field(PREC, "3") } -record(bo, "$(DEVICE):BO") { - field(DESC, "Binary Output Record (bo)") - field(ASG, "READONLY") - field(ZSV, "MINOR") - field(OSV, "NO_ALARM") - field(VAL, "1") - field(PINI, "YES") +record(ao, "$(DEVICE):CONTROL-80-MINHEIGHT") { + field(DESC, "Controls peakfinder min peak height") + field(VAL, "135") + field(PREC, "1") +} + +record(ao, "$(DEVICE):CONTROL-80-MINSEP") { + field(DESC, "Controls peakfinder min peak separation") + field(VAL, "150") + field(PREC, "1") +} + +record(ao, "$(DEVICE):CONTROL-2K-NPOINTS") { + field(DESC, "Controls peakfinder points to use") + field(VAL, "16000") + field(PREC, "1") +} + +record(ao, "$(DEVICE):CONTROL-2K-MINHEIGHT") { + field(DESC, "Controls peakfinder min peak height") + field(VAL, "4e-10") + field(PREC, "-3") +} + +record(ao, "$(DEVICE):CONTROL-2K-MINSEP") { + field(DESC, "Controls peakfinder min peak separation") + field(VAL, "5") + field(PREC, "1") +} + +record(ao, "$(DEVICE):STAGE0-Q-80TURNS") { + field(DESC, "Turns detected in DBPM3 TbT raw data") + field(PREC, "1") +} + +record(ao, "$(DEVICE):STAGE0-Q-2KTURNS") { + field(DESC, "Turns detected in DBPM3 Stage 0 data") + field(PREC, "1") +} + +record(waveform, "$(DEVICE):BPM-WF-ENUMERATE") { + field(DESC, "Entire measured longitudinal spectrum") + field(NELM, "16384") + field(FTVL, "FLOAT") +} + +record(waveform, "$(DEVICE):STAGE0-Q-80TURNS-WF") { + field(DESC, "Entire measured longitudinal spectrum") + field(NELM, "16384") + field(FTVL, "FLOAT") +} + +record(waveform, "$(DEVICE):STAGE0-Q-80TURNS-PEAKS") { + field(DESC, "Entire measured longitudinal spectrum") + field(NELM, "16384") + field(FTVL, "FLOAT") +} + +record(waveform, "$(DEVICE):STAGE0-Q-2KTURNS-WF") { + field(DESC, "Entire measured longitudinal spectrum") + field(NELM, "16384") + field(FTVL, "FLOAT") +} + +record(waveform, "$(DEVICE):STAGE0-Q-2KTURNS-PEAKS") { + field(DESC, "Entire measured longitudinal spectrum") + field(NELM, "16384") + field(FTVL, "FLOAT") } -# TODO: ok? -record(bo, "$(DEVICE):CALLBACK") { - field(DESC, "Callback PV to listen to for changes") - field(ASG, "READONLY") - field(ZSV, "MINOR") - field(OSV, "NO_ALARM") - field(VAL, "1") - field(PINI, "YES") -} \ No newline at end of file