Experimental Physics and Industrial Control System
|
Hi Marco,
Did you set the mask for the asynInt32 interface in the constructor for you driver?
Please send the complete output when the IOC boots with your driver. There may be an error message there.
Also send the output of this command at the IOC prompt:
asynReport 10
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of
Marco A. Barra Montevechi Filho via Tech-talk
Sent: Wednesday, February 15, 2023 9:39 AM
To: tech-talk at aps.anl.gov
Cc: SWC <swc at lnls.br>
Subject: Cpp code not recognizing asyn parameter
Hello all. Im trying to use the asyn module to associate the value of a PV to the value of a variable inside my cpp code.
The PV is defined as:
record(mbbo, "$(P)$(BE)DynamicRange"){
field(ONST, "Full Dynamic Range")
field(OUT, "@asyn($(PORT),$(ADDR=0),$(TIMEOUT=1))DYNAMIC_RANGE")
}
In my header file i have:
#define DynamicRangeString "DYNAMIC_RANGE"
int DynamicRangeString_;
and inside my .cpp:
createParam(DynamicRangeString, asynParamInt32, &DynamicRangeString_);
asynStatus Mobipix::writeInt32(asynUser *pasynUser, epicsInt32 value)
{
(...)
printf("test");
}
When i dbpf into other asyn mbbo records that come from ADBase.template, such as "$(P)$(R)FrameType", the ioc shell prints the test message. When i dbpf into my DynamicRange PV nothing happens.
What am i missing?
Thanks for the help,
Marco
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: Cpp code not recognizing asyn parameter Marco A. Barra Montevechi Filho via Tech-talk
- References:
- Cpp code not recognizing asyn parameter Marco A. Barra Montevechi Filho via Tech-talk
- Navigate by Date:
- Prev:
Cpp code not recognizing asyn parameter Marco A. Barra Montevechi Filho via Tech-talk
- Next:
Re: Cpp code not recognizing asyn parameter Marco A. Barra Montevechi Filho 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
- Navigate by Thread:
- Prev:
Cpp code not recognizing asyn parameter Marco A. Barra Montevechi Filho via Tech-talk
- Next:
Re: Cpp code not recognizing asyn parameter Marco A. Barra Montevechi Filho 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
|
ANJ, 15 Feb 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|