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

Subject: Re: StreamDevice, asynDriver or some other solution?
From: Dirk Zimoch <[email protected]>
To: [email protected]
Date: Thu, 24 Jul 2014 11:27:43 +0200
On 22.07.2014 21:17, Bryan J. Boardman / Aware Electronics Corp. wrote:
StreamDevice might be overkill so my question is, if the customer wants
to periodically poll the monitor for current reading and do something
with it, for example plot, sound an alarm, etc. which would be the best
solution StreamDevice, asynDriver or some other solution?

StreamDevice OR asynDriver is not the choice. StreamDevice uses asynDriver for the communication with the hardware. It just does the parsing and formatting for you. And no, it is no overkill.


I gleaned the above from an example but am not sure what much of it means, for example dbLoadRecords "aware.db","P=DZ,BUS=L0 28"

This passes two macros to the template, where they are used as $(P) and $(BUS). P is in this particular case the record prefix, BUS is the asynDriver port and address as configured in the startup script:
vxi11Configure "L0","gpib-dz-1",0,0.0,"gpib0",0,0

That is a VXI11 (aka "GPIB over Ethernet") device with hostname (of the LAN-GPIB gateway for example) "gpib-dz-1" and GPIB address 28.

For serial communication, the setup will be different, the rest (template, protocol) stays the same.

Terminator = CR LF;
get_aware_reading {
    out "\aP"; in "%f";
}

This is exactly what StreamDevice was made for.

RS-232 serial port and a built-in USB port using FTDI chip(FTDI devices now supported in Ubuntu 11.10, kernel 3.0.0-19)

If Linux shows it as a /dev/tty* character device, asynDriver/StreamDevice can use it.

Dirk

References:
StreamDevice, asynDriver or some other solution? Bryan J. Boardman / Aware Electronics Corp.

Navigate by Date:
Prev: Re: EPICS alarming on VAL != X Dirk Zimoch
Next: Re: Formatting StreamDevice input Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: StreamDevice, asynDriver or some other solution? Mark Rivers
Next: Tabbed Container Ability Patard Charles-Henri
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·