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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: added the pv in synapps |
From: | 网易邮件中心 via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Mark Rivers" <rivers at cars.uchicago.edu> |
Cc: | tech-talk <tech-talk at aps.anl.gov> |
Date: | Wed, 29 Jun 2022 10:29:44 +0800 (GMT+08:00) |
From | Mark Rivers<rivers at cars.uchicago.edu> |
Date | 06/28/2022 23:44 |
To | tech-talk <tech-talk at aps.anl.gov>, 网易邮件中心<l123173 at 163.com> |
Subject | RE: added the pv in synapps |
Correction,
scaler16m.db actually requires 5 macro arguments:
$(P) The prefix
$(S) The name for this scaler instance
$(FREQ) The frequency of the clock input
$(DTYP) The device type.
$(OUT) The link specification for the hardware connection
Mark
From: Mark Rivers <rivers at cars.uchicago.edu>
Sent: Tuesday, June 28, 2022 9:11 AM
To: tech-talk <tech-talk at aps.anl.gov>; 网易邮件中心 <l123173 at 163.com>
Subject: Re: added the pv in synapps
> But still failed after I added the command
> "dbLoadRecords("$(STD)/stdApp/Db/scaler16m.db", "P=$(PREFIX)")"
> in st.cmd(common.iocsh)
scaler16m.db requires 2 macro arguments, $(P) and $(S). You did not pass $(S). You should change it to something like this:
dbLoadRecords("$(STD)/stdApp/Db/scaler16m.db", "P=$(PREFIX), S=scaler1")
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
on behalf of 网易邮件中心 via Tech-talk <tech-talk at aps.anl.gov>
Sent: Tuesday, June 28, 2022 8:26 AM
To: tech-talk <tech-talk at aps.anl.gov>
Subject: added the pv in synapps
Hi all,
I have a simple question about pv was all disconnected.
I run the xxx ioc, run the opi. But all pv in scaler16m.opi was disconnect.(the ioc did work well)
I typed dbl command, they were not listed, such as xxx:scaler1.S1.
I think the reason was missing some dbLoadRecord of std.
But still failed after I added the command "dbLoadRecords("$(STD)/stdApp/Db/scaler16m.db", "P=$(PREFIX)")" in st.cmd(common.iocsh)
The output of st.cmd:
Warning: '/usr/local/epics/synApps/support/std-R3-6-2/stdApp/Db/scaler16m.db' line 9 has undefined macros
Error: Bad character '$' in Record/Alias name "xxx:$(S,undefined)_calcEnable"
Error at or before ")" in file "/usr/local/epics/synApps/support/std-R3-6-2/stdApp/Db/scaler16m.db" line 9
Error: syntax error
dbLoadRecords: failed to load '/usr/local/epics/synApps/support/std-R3-6-2/stdApp/Db/scaler16m.db'
Could someone tell me what's wrong with me?
I use base 7.0.5,synapps 6.2, opi was control system studio.
Regards,
Liang