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  <20182019  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  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: printing to console in Display Builder
From: "Gregory, Ray" <[email protected]>
To: "Kasemir, Kay" <[email protected]>, "[email protected]" <[email protected]>
Date: Tue, 22 May 2018 19:56:14 +0000
Thank you, Kay. That is good to know. --Ray

-----Original Message-----
From: Kasemir, Kay 
Sent: Tuesday, May 22, 2018 2:55 PM
To: Gregory, Ray <[email protected]>; [email protected]
Subject: Re: printing to console in Display Builder

> In a Python BOY script for an OPI I can use the following code to print a console message:
>from org.csstudio.opibuilder.scriptUtil import ConsoleUtil
>ConsoleUtil.writeInfo("This is a console message.")
 
>How can I do the same thing in a Display Builder script?

Check the display builder examples in /Display Builder/script_util.

Most times it's easiest to just

print("Hello")

which appears in the terminal window where you started CSS.
You can also do this, which appears in the Console of "Log Messages":

from org.csstudio.display.builder.runtime.script import ScriptUtil
ScriptUtil.getLogger().("Script has a problem")
ScriptUtil.getLogger().info("Script is at step 3")



-Kay

References:
printing to console in Display Builder Gregory, Ray
Re: printing to console in Display Builder Kasemir, Kay

Navigate by Date:
Prev: Re: :tdir messages in ioc for Pmac Wayne Lewis
Next: xxxRecord.c warning about epicsFloat64 to float conversion J. Lewis Muir
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: printing to console in Display Builder Kasemir, Kay
Next: xxxRecord.c warning about epicsFloat64 to float conversion J. Lewis Muir
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 22 May 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·