Skip to content

Commit

Permalink
acq: add BPM data NTTable.
Browse files Browse the repository at this point in the history
This allows clients to fetch acquisition data atomically with a single
connection. It also provides a practical visualization for clients using
pvget/pvmonitor.
  • Loading branch information
ericonr committed Dec 3, 2024
1 parent 6439ef8 commit ca70ecc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utcaApp/Db/bpm_data.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ record(aai, "$(P)$(R)$(ACQ_NAME)Ampl$(ADC)Data"){
field(FTVL, "LONG")
field(SCAN, "I/O Intr")
field(INP, "@asyn($(PORT),$(ADDR))ADC")
info(Q:group, {
"$(P)$(R)$(ACQ_NAME)Data-Mon": {
"value.$(ADC)": {+type: "plain", +channel: "VAL"}
}
})
}
21 changes: 21 additions & 0 deletions utcaApp/Db/bpm_pos_data.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,45 @@ record(aai,"$(P)$(R)$(ACQ_NAME)PosXData") {
field(EGU, "nm")
field(NELM, "$(NELM)")
field(FTVL, "DOUBLE")
info(Q:group, {
"$(P)$(R)$(ACQ_NAME)Data-Mon": {
"value.X": {+type: "plain", +channel: "VAL"}
}
})
}

record(aai,"$(P)$(R)$(ACQ_NAME)PosYData") {
field(EGU, "nm")
field(NELM, "$(NELM)")
field(FTVL, "DOUBLE")
info(Q:group, {
"$(P)$(R)$(ACQ_NAME)Data-Mon": {
"value.Y": {+type: "plain", +channel: "VAL"}
}
})
}

record(aai,"$(P)$(R)$(ACQ_NAME)SumData") {
field(EGU, "au")
field(NELM, "$(NELM)")
field(FTVL, "DOUBLE")
info(Q:group, {
"$(P)$(R)$(ACQ_NAME)Data-Mon": {
"value.S": {+type: "plain", +channel: "VAL"}
}
})
}

record(aai,"$(P)$(R)$(ACQ_NAME)PosQData") {
field(EGU, "nm")
field(NELM, "$(NELM)")
field(FTVL, "DOUBLE")
info(Q:group, {
"$(P)$(R)$(ACQ_NAME)Data-Mon": {
"value.Q": {+type: "plain", +channel: "VAL", +trigger: "*"},
"": {+type: "meta", +channel: "VAL"}
}
})
}

record(aao,"$(P)$(R)$(ACQ_NAME)_PolyXArrayCoeff-SP") {
Expand Down
10 changes: 10 additions & 0 deletions utcaApp/Db/pos_calc.template
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ record(aai, "$(P)$(R)TableLabels-Cte"){
labels: {+type: "plain", +channel: "VAL"},
descriptor: {+type: "const", +const: "monit-rate data"}
},
"$(P)$(R)GENData-Mon": {
+id: "epics:nt/NTTable:1.0",
labels: {+type: "plain", +channel: "VAL"},
descriptor: {+type: "const", +const: "general acquisition core data"}
},
"$(P)$(R)PMData-Mon": {
+id: "epics:nt/NTTable:1.0",
labels: {+type: "plain", +channel: "VAL"},
descriptor: {+type: "const", +const: "post-mortem acquisition core data"}
},
})
}

Expand Down

0 comments on commit ca70ecc

Please sign in to comment.