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: printing to console in Display Builder |
From: | "Kasemir, Kay" <[email protected]> |
To: | "Gregory, Ray" <[email protected]>, "[email protected]" <[email protected]> |
Date: | Tue, 22 May 2018 18:54:30 +0000 |
> 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