Experimental Physics and
| |||||||||||||||
|
Is there is any way, one can know the type of record, if I know the PV name. e.g. I have a analog input record Py:ai1 >>> pv=epics.PV('Py:ai1')
>>> pv.type 'double' >>> pv.count 1 >>> pv.get_ctrlvars() {'status': 17, 'lower_disp_limit': 0.0, 'upper_disp_limit': 0.0, 'severity': 3, 'upper_ctrl_limit': 0.0, 'lower_alarm_limit': nan, 'precision': 0, 'upper_alarm_limit': nan, 'lower_warning_limit': nan, 'upper_warning_limit': nan, 'units': '', 'lower_ctrl_limit': 0.0}
>>> pv.info "== Py:ai1 (native_double) ==\n value = 1\n char_value = '1'\n count = 1\n type = double\n units = \n precision = 0\n host = trunk.codac.iter.org:42293\n access = read/write\n status = 17\n severity = 3\n timestamp = 1303134187.996 (2011-04-18 15:43:07.996138)\n upper_ctrl_limit = 0.0\n lower_ctrl_limit = 0.0\n upper_disp_limit = 0.0\n lower_disp_limit = 0.0\n upper_alarm_limit = nan\n lower_alarm_limit = nan\n upper_warning_limit = nan\n lower_warning_limit = nan\n PV is internally monitored, with 0 user-defined callbacks:\n============================="
How does I get it is of record type analog input e.g. (ai). One way is to get it from output string . Is there is a simple way ? -----------------------------------------------------------------
Best regards, Ritesh Sugandhi
| ||||||||||||||
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |