EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Asyn - max addresses per port
From: Mark Rivers <[email protected]>
To: 'Eric Norum' <[email protected]>, Amien Crombie <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Thu, 15 Mar 2018 16:33:53 +0000
If you have maxAddress=N there is nowhere that you tell asynManager the value of N.  It allocates storage for device M when it is first referenced.  So you could have a single address of 10000 and that does not use any more memory than having a single address of 1.

However, asynPortDriver does require you to specify the value of N because it create N parameter table arrays in the constructor.  In the future asynPortDriver could be changed to use an std::map to map address to parameter table and then it could also allocate on-demand.

Mark


> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of Eric Norum
> Sent: Thursday, March 15, 2018 11:27 AM
> To: Amien Crombie <[email protected]>
> Cc: EPICS Tech-Talk <[email protected]>
> Subject: Re: Asyn - max addresses per port
> 
> There is nothing in ASYN that would prohibit this.  I have drivers with dozens of addresses
> on a single ASYN port.
> 
> 
> > On Mar 15, 2018, at 9:19 AM, Amien Crombie <[email protected]> wrote:
> >
> > Hi
> >
> > I have a 8-channel Asyn driver that allows me to have 1 port with 8 addresses. Each
> address holds a int32.
> >
> > Now I want to go to 48 addresses...is it possible?
> >
> > I'm using asyn-4-21
> >
> > Amien
> >
> 
> --
> Eric Norum
> [email protected]
> 
> 
> 


Replies:
Re: Asyn - max addresses per port Amien Crombie
References:
Asyn - max addresses per port Amien Crombie
Re: Asyn - max addresses per port Eric Norum

Navigate by Date:
Prev: Re: Asyn - max addresses per port Eric Norum
Next: Re: Asyn - max addresses per port Amien Crombie
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Asyn - max addresses per port Eric Norum
Next: Re: Asyn - max addresses per port Amien Crombie
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  <20182019  2020  2021  2022  2023  2024