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  <2025 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  <2025
<== Date ==> <== Thread ==>

Subject: RE: StreamDevice and AMSG field
From: Zimoch Dirk via Tech-talk <tech-talk at aps.anl.gov>
To: "Neidherr, Dennis Dr." <D.Neidherr at gsi.de>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 20 May 2025 08:00:55 +0000
Hi Dennis

Yes, that field is new and not yet supported by StreamDevice.
The idea of that field is to store clear text error messages together with the alarm status/severity for easier debugging. StreamDevice could use it to store messages like "Parse Error", "Connection lost", "Reply timeout" etc.  
The field is not modifiable by dbPutField and thus neither by caput nor by redirection from a StreamDevice protocol.
As storing something into AMSG uses a totally different method, it would be difficult to make it writable by redirections.

Dirk

> -----Original Message-----
> From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Neidherr, Dennis
> Dr. via Tech-talk
> Sent: Dienstag, 20. Mai 2025 08:57
> To: tech-talk at aps.anl.gov
> Subject: StreamDevice and AMSG field
> 
> Dear all,
> 
> and again a small question:
> According to the documentation there is a (new?) field called AMSG to store
> alarm (or error) messages. Is this somehow also useable with StreamDevice?
> Because this field is marked as "non-writable", I can not simply redirect errors
> into it like I tried here:
> 
> setAmplitude0 {
>     out ":SOUR1:VOLT %f;:SYST:ERR?";
> 	in "+%(myAgilent:ErrorCode)i,\"No error\"";
> 	# @mismatch { in
> "%(myAgilent:ErrorCode)i,\"%(myAgilent:ErrorMsg)#s\"" }
> 	@mismatch { in "%(myAgilent:ErrorCode)i,\"%(AMSG)#s\"" }
> 	@writetimeout { disconnect; }
> 	@readtimeout { disconnect; }
> 	@replyTimeout { disconnect; }
> }
> 
> I can certainly use another record to store errors but with the AMSG-field this
> would be a more elegant way. So, is there some workaround or have I maybe
> missed something?
> 
> Thanks and
> Greetings Dennis

Replies:
RE: StreamDevice and AMSG field Neidherr, Dennis Dr. via Tech-talk
Re: StreamDevice and AMSG field Michael Davidsaver via Tech-talk
References:
StreamDevice and AMSG field Neidherr, Dennis Dr. via Tech-talk

Navigate by Date:
Prev: StreamDevice and AMSG field Neidherr, Dennis Dr. via Tech-talk
Next: RE: StreamDevice and AMSG field Neidherr, Dennis Dr. 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  <2025
Navigate by Thread:
Prev: StreamDevice and AMSG field Neidherr, Dennis Dr. via Tech-talk
Next: RE: StreamDevice and AMSG field Neidherr, Dennis Dr. 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  <2025
ANJ, 20 May 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·