Thanks for your relpy. It is a good idea and I have one more question to consult you.
Now, I have two PVs, one is my local PV (loc://record), another is external PV from epics (caLab:okok). The result of "camonitor caLab:okok" display 1,2,3,4,5,... each second.
and I want to put the value of caLab:okok to my local PV (loc://record) as an input for my script to store the value.
In my script, #0 is caLab:okok and #1 is loc://record, I try to write the script as the following lines:
from org.csstudio.opibuilder.scriptUtil import PVUtil
However, the error occurs:
SyntaxError:("can't assign to function call", ('<script>',3,0, 'PVUtil.getDouble(pvs)=value\n'))
Any help will be appreciated and thanks in advance.
发件人: Anton Derbenev <firstname.lastname@example.org>
发送时间: 2017年10月30日 2:17
收件人: lzf neu
主题: Re: How to define a global variable and global array in python script for a widget of Control system studio (CSS) ?
how about using a local PV to store the value? This would also give you the possibility to show it on your page, if needed. You can put local PV as an input for your script, e.g.: