EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: print from interrupt
From: "D. Peter Siddons" <[email protected]>
To: Mark Rivers <[email protected]>
Cc: [email protected]
Date: Fri, 27 Feb 2004 16:05:25 +0100
Thanks to all who responded. I should have made it clear that I was talking about an RTEMS app., which only has epicsInterruptContextMessage(), which can only print a string, no formatting. Eric Norum suggested using snprintf() to fill a buffer and pass that to epicsInterruptContextMessage(). That seems to work fine. I had the impression before that calling any of the xprintf() commands from within interrupt context wasn't allowed, but apparently the string variants are OK.
Pete.



Mark Rivers wrote:
Hi Pete,


Is there a way in EPICS to print a numeric parameter from within an ISR, similar to epicsInterruptContextMessage(), but capable

of


printing the value of a variable (integers, anyway)? Or must I write a


routine to do it? It would be a useful debugging aid.


This may be a dumb question, but can you call sscanf at interrupt level?
If so you can convert your number to a string and then just use
epicsInterruptContextMessage

Mark



--
D. Peter Siddons
Bldg. 725D, NSLS
Brookhaven National Laboratory
Upton, NY 11976
USA.

Email: [email protected]


Replies:
Re: print from interrupt Eric Norum

Navigate by Date:
Prev: print from interrupt D. Peter Siddons
Next: Re: gtr1-2 for SIS3301. Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: print from interrupt D. Peter Siddons
Next: Re: print from interrupt Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·