Hi Zen,
If you look in asyn/asyn/devEpics/devAsynInt32.c you'll see that getBounds is called in initAi(), initAiAverage(), and initAo().
However, it is not called if the user specified the number of bits the device supports by using the asynMask syntax for the INP or OUT link specification. That allows the device support to work correctly with Modbus and similar systems where a generic driver cannot know how many bits the device will support, so the database designer must define it.
- Are you using the asynInt32 device support for ai, aiAverage, or ao?
- Are you using the "asynMask" or "asyn" syntax in your link specification?
Can you send me a copy of the record definition in the .db or .template file?
Mark
________________________________________
From: Zenon Szalata [[email protected]]
Sent: Monday, March 04, 2013 6:14 PM
To: Mark Rivers; tech-talk
Subject: getBounds
Hi Mark,
I wonder when is the virtual function getBounds in asynPortDriver called.
I have reimplemented this function in my device driver. I put a printf
statement in it and it looks that it never gets called. I am thinking
that it should be called for each analog in or analog out record at IOC
init time. That is not what I see. What am I missing?
Thanks,
Zen
- Replies:
- Re: getBounds Zenon Szalata
- References:
- getBounds Zenon Szalata
- Navigate by Date:
- Prev:
getBounds Zenon Szalata
- Next:
EPICS Record Support ahwwq
- 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:
getBounds Zenon Szalata
- Next:
Re: getBounds Zenon Szalata
- 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
|