EPICS Controls Argonne National Laboratory

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  2018  2019  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  2018  2019  2020  2021  2022  2023  <2024
<== Date ==> <== Thread ==>

Subject: RE: RE: A question on asyn application
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: Ralph Lange <ralph.lange at gmx.de>, EPICS Tech Talk <tech-talk at aps.anl.gov>
Cc: cxy <ycx810212 at 163.com>
Date: Wed, 24 Jan 2024 16:18:31 +0000
  • If your device is interfaced through messages over a byte-stream connection (like TCP) and the communication follows a request/response model - your test looks like exactly that - you should not code your own asyn driver, but use StreamDevice.

 

I agree with that statement in most cases.  However, there are important exceptions:

 

  • When using non-standard EPICS records, such as the motor record, scaler record, mca record, etc.  StreamDevice cannot be used for these. Since the driver name in this case is ct08, this might be a counter using the scaler record.
  • When dealing with complex devices where the “state” of the device is important for the communications.  It is more difficult keep the state information in the database and act on it appropriately than it is in the driver.
  • When dealing with request/response protocols that can be much more efficient when processing multiple records when not using StreamDevice.  For example, a single Modbus transaction can update the state of 2000 bi records.  It is much simpler and more efficient to use the optimized Modbus driver rather than StreamDevice.

 

Mark

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Ralph Lange via Tech-talk
Sent: Monday, January 22, 2024 10:58 PM
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Cc: cxy <ycx810212 at 163.com>
Subject: Re: RE: A question on asyn application

 

Hi Yoon,

 

Just to make sure:

If your device is interfaced through messages over a byte-stream connection (like TCP) and the communication follows a request/response model - your test looks like exactly that - you should not code your own asyn driver, but use StreamDevice.

 

Cheers,

~Ralph

 


Replies:
Re: RE: A question on asyn application Ralph Lange via Tech-talk
References:
A question on asyn application cxy via Tech-talk
Re: A question on asyn application Torsten Bögershausen via Tech-talk
RE: A question on asyn application Mark Rivers via Tech-talk
Re:RE: A question on asyn application cxy via Tech-talk
Re: RE: A question on asyn application Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: mvme3100 epics and control motor Mark Rivers via Tech-talk
Next: Re: RE: A question on asyn application Ralph Lange 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: Re:Re:Re: RE: A question on asyn application cxy via Tech-talk
Next: Re: RE: A question on asyn application Ralph Lange 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, 24 Jan 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·