Hi:
According to 'cainfo' my pv is a DBF_DOUBLE and request is DBR_DOUBLE
Well, when I try it with double or int PVs, I do get the value out via PVUtil.getDouble.
When the PV is a string, then PVUtil.getDouble returns nan.
But I do not know how to check for output with the 'print' statement..
I'm using Mint 18 and CSS is started >without a terminal command (am I doing something wrong?)
Just open a terminal (xterm, gnome-terminal, ...) and then start CSS from within the terminal.
=> In that terminal you can now see the print statements.
If you don't have a terminal (like on MS Windows), you can use the ScriptUtil.
from org.csstudio.display.builder.runtime.script import ScriptUtil
ScriptUtil.getLogger().warning("Script has a problem")
==> Those messages appear in the console and also in the workspace/.metadata/.log
Finally, the ScriptUtil also allows you to open dialogs:
ScripUtil.showErrorDialog(widget, "I have a problem, pv has value " + str(pv.read()))
-Kay