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  <20192020  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Device sending continuously Data
From: Dirk Zimoch via Tech-talk <[email protected]>
To: <[email protected]>
Date: Mon, 6 May 2019 09:05:40 +0200
Hi Benjamin,

It should work with a StreamDevice protocol like this:

getData {
  maxInput=8;
  in 0x20 0x21 "%#2r%(\$1)#2r" 0x17 0x18;
}

record (ai, "$(P)Data1") {
  field (DTYP, "stream")
  field (INP, "@$(PROTOCOLFILE) getData($(P)Data2) $(ASYNPORT)")
  field (SCAN, "I/O Intr")
}

record (ai, "$(P)Data2") {
}

Dirk



On 05.05.19 09:40, Benjamin Hetz via Tech-talk wrote:
Hello,

I am having a device that does continuously send data via serial port in the form 20h21h<lowbyte1><highbyte1><lowbyte2><highbyte2>17h18h. In a rate of ~ 10 Hz. I guess one can get the two integers by using stream device and use a calc record to combine the low and high bytes. But stream device does not seem to be appropriate here. Are there any other suggestion?

Thanks a lot, Benjamin


References:
Device sending continuously Data Benjamin Hetz via Tech-talk

Navigate by Date:
Prev: Re: firewalld configuration for EPICS? Matt Newville via Tech-talk
Next: RE: Pmac Slits George Nicolas Kontogiorgos 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Device sending continuously Data Benjamin Hetz via Tech-talk
Next: Simple test fails to find subroutine in registry Matt Rippa 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  <20192020  2021  2022  2023  2024 
ANJ, 06 May 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·