Experimental Physics and
| |||||||||||||||
|
Dear community
I am trying to acess PVs of my ioc. My ioc(stream device) is running properly and containing "readvoltage" and "readcurrent", "calculatedpower" as PVs.
In my CSS application, I want to access the above two mentioned PVs in order to make some calculations. I am trying python embedded script as follows; voltage = PVUtil.getDouble(readvoltage) # readvoltage and readcurrent are PVs in my ioc current=PVUtil.getDouble(readcurrent) power = valtage*current
calculatedpower.setValue(power) # calculatedpower is a PV in my ioc When I run my opi it gives me the error;
"readvoltage" not defined? In my opi, I have two text input widget which are receiving readvoltage PV value and readcurrent PV value, and one Text Update widget which will receive the calculatedpower PV value.
Looking for your kind reply. Thank you all.
| ||||||||||||||
ANJ, 20 Apr 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |