Experimental Physics and
| |||||||||||||||
|
My specific problem: I have a MonitorListener, which delivers a MonitorEvent on a PV value change. The MonitorEvent gives me DBR, from which I want to get the new value as a String. My code looks like this: DBR dbr = evt.getDBR(); DBR dbr2 = dbr.convert(DBRType.CTRL_STRING); String[] s = ((DBRString) dbr2).getStringValue(); s[0] contains the correct value for all DBR types, with the exception of enumerated types, where it has an empty string. What am I doing wrong? Thanks - rolf - -- +-----------------------------------------+ | Rolf Keitel, Ph.D., TRIUMF | | Division Head, Engineering | | Tel: (604) 222-7453 Fax: (604)222-7307 | | e-mail: [email protected] | +-----------------------------------------+
| ||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |