Hi all!
I'm trying out using group definitions to create NTTable groups with
related information to be served by my IOC. I managed to make them work
with the "info(Q:group, ...)" fields in databases, but, when I tried to
use a separate .json file (not as relevant for my current use case, but
seems like it would be useful when retrofitting tables into existing
modules), I couldn't get it to work.
This is the definition I tried to use:
{
"$(P)$(R)EventTable2-Mon": {
"+id": "epics:nt/NTTable:1.0",
"labels": {"+type": "plain", "+channel": "$(P)$(R)bufferLABELS"},
"value.A": {"+type": "plain", "+channel": "$(P)$(R)TSbuffer.VAL"},
"value.B": {"+type": "plain", "+channel":
"$(P)$(R)EVENTbuffer.VAL", "+trigger": "*"},
}
}
Without quotes around the mapping names, I got errors from the json
parser, with both PVXS and epics-base's *CPP implementation:
Error from dbGroup file "../../db/event_log.json"
Error on line 3 : lexical error: invalid char in json text.
+id: "epics:nt/NTTable:1.0",
(right here) ------^
However, with the quotes, dbLoadGroup doesn't error out, nor are any
errors printed after iocInit, but pvxgl does not list the table.
Are .json files supposed to be more limited? Or am I doing something
wrong? I couldn't find any docs going in depth into the json files (I
looked at [1] [2] [3]).
[1] https://urldefense.us/v3/__https://epics-base.github.io/pvxs/qgroup.html__;!!G_uCfscf7eWS!ZkcqIYOSuSHnDwdyHQN7hroMlRcHk8MhjbqxVyzSYijS645AhEcpgViz5a4iy70Qd2WTisrt6SnHQkDpbqFDi9HprPU$
[2]
https://urldefense.us/v3/__https://docs.epics-controls.org/projects/pva2pva/en/stable/doxygen/qsrv_page.html__;!!G_uCfscf7eWS!ZkcqIYOSuSHnDwdyHQN7hroMlRcHk8MhjbqxVyzSYijS645AhEcpgViz5a4iy70Qd2WTisrt6SnHQkDpbqFDhPt0pY0$
[3]
https://urldefense.us/v3/__https://docs.epics-controls.org/en/latest/pv-access/Normative-Types-Specification.html*nttable__;Iw!!G_uCfscf7eWS!ZkcqIYOSuSHnDwdyHQN7hroMlRcHk8MhjbqxVyzSYijS645AhEcpgViz5a4iy70Qd2WTisrt6SnHQkDpbqFDRtfc0-4$
Cheers,
Érico
Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.
Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.
- Replies:
- Re: Using separate .json files for NTTable definitions Michael Davidsaver via Tech-talk
- Navigate by Date:
- Prev:
ADVimba IOC boot recGblRecordError NDPluginDriver errors Rong Huang via Tech-talk
- Next:
Re: [EXTERNAL] Phoebus settings.ini - Path to predefined Colors and Fonts Dr. Simon Friederich via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
<2024>
2025
- Navigate by Thread:
- Prev:
Re: ADVimba IOC boot recGblRecordError NDPluginDriver errors Rong Huang via Tech-talk
- Next:
Re: Using separate .json files for NTTable definitions Michael Davidsaver via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
<2024>
2025
|