EPICS Home

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: StreamDevice and AMSG field
From: "Neidherr, Dennis Dr. via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 20 May 2025 06:56:53 +0000
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 Zimoch Dirk via Tech-talk

Navigate by Date:
Prev: Including dbBase.h leeds to DBR_XXXX macro redefines Heinz Junkes via Tech-talk
Next: RE: StreamDevice and AMSG field Zimoch Dirk 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: Including dbBase.h leeds to DBR_XXXX macro redefines Heinz Junkes via Tech-talk
Next: RE: StreamDevice and AMSG field Zimoch Dirk 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