EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: StreamDevice 2
From: Benjamin Franksen <[email protected]>
To: [email protected]
Date: Sat, 11 Mar 2006 00:22:37 +0100
On Thursday 09 March 2006 16:05, Dirk Zimoch wrote:
> StreamDevice Version 2.0 is released now.
> http://epics.web.psi.ch/software/streamdevice/
>
> It requires R3.14.6 or higher (recommended: R3.14.8.2) and asynDriver
> 4-3 or 4-4.

Hi Dirk

many thanks for this work. I will use this (together with asyn) as a 
replacement for devCommonGpib-style device supports ASAP.

I have one question: the docs say that readback from devices for output 
records (for bumpless reboot) is done synchronously, blocking iocInit 
until all such readbacks have completed. There may be situations where 
this is the right aproach. However, there are others, where one would 
wish to have the readback to proceed asynchronously, for instance if 
there are a lot of such records on an IOC.

In our MultiCAN package we do this by letting init_record 'fake' the 
first phase of asynchronous processing. That is, init_record starts 
readback, sets PACT and arranges for a special kind of process callback 
that lets processing complete with a read (instead of the normal write) 
operation.

Would it be very difficult to enable such behavior (optionally, the 
synchronous version remaining the default) for StreamDevice, too? Would 
you accept a patch that implements this?

The StreamDevice docs mention the interaction with PINI flag. I think 
the best solution is to enable readback on startup only if PINI 
is /not/ set. Reading back from teh device hardly makes sense if the 
first thing you are going to do is overwrite the value with something 
else. OTOH, if PINI is not set, then doing a readback on startup will 
at least not do any harm.

Ben
-- 
There are three kinds of programmers: those who make off by one errors, 
and those who don't.

Replies:
Re: StreamDevice 2 Dirk Zimoch
References:
StreamDevice 2 Dirk Zimoch

Navigate by Date:
Prev: Re: segmentation fault in ca_task_initialize running in Linux Margaret Votava
Next: RE: asynDriver/asynGpib LYNCH, Damien
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: StreamDevice 2 Dirk Zimoch
Next: Re: StreamDevice 2 Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·