From cc807202eaf85fcf212f764084a10b2675154140 Mon Sep 17 00:00:00 2001 From: Jerzy Jamroz Date: Fri, 29 Nov 2024 12:16:18 +0100 Subject: [PATCH] feat: Timestamp absolute extensions. --- evrMrmApp/Db/Makefile | 1 + evrMrmApp/Db/mrmevrtsabs.template | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 evrMrmApp/Db/mrmevrtsabs.template diff --git a/evrMrmApp/Db/Makefile b/evrMrmApp/Db/Makefile index d7f73849..0be4cf59 100644 --- a/evrMrmApp/Db/Makefile +++ b/evrMrmApp/Db/Makefile @@ -11,6 +11,7 @@ DB += mrmevrbase.template DB += mrmevrdc.template DB += mrmevrbufrx.db DB += mrmevrtsbuf.db +DB += mrmevrtsabs.template DB += sequencedemo.db DB += mrmevrdlymodule.template DB += evrSoftSeq.template diff --git a/evrMrmApp/Db/mrmevrtsabs.template b/evrMrmApp/Db/mrmevrtsabs.template new file mode 100644 index 00000000..0e92afff --- /dev/null +++ b/evrMrmApp/Db/mrmevrtsabs.template @@ -0,0 +1,20 @@ +# "evreventutag.db" and the "mrmevrtsbuf.db" extension with absolute related adaptation +## Use "$(P)$(Evt=)TsAbsCode-SP" to set the reference event for the absolute timestamp acquisition +## Use "$(P)$(Evt=)Cnt-I" as the absolute timestamp source +## Use "$(P)$(Evt=)TS-I" as the relative timestamp source + +record(longout, "$(P)$(Evt=)TsAbsCode-SP") { + field(DESC, "Distribute event to all sources") + field(VAL , "$(CODE=255)") + field(PINI, "YES") + field(OUT, "$(P)$(Evt=)FlshEvt-SP CP") + info(autosaveFields_pass0, "VAL") + alias("$(P)$(Evt=)TsAbsCode-RB") +} + +record(printf, "$(P)$(Evt=)TsAbsLock_") { + field(OMSL, "closed_loop") + field(FMT, "@OBJ=$(EVR),Code=%u") + field(INP0, "$(P)$(Evt=)TsAbsCode-SP CPP") + field(OUT, "$(P)$(Evt=)-SP.OUT CP") +}