Experimental Physics and Industrial Control System
|
Subject: |
Re: How to know type of record at client end [Py-epics v3.1.1 interface ] |
From: |
Ritesh Sugandhi <[email protected]> |
To: |
[email protected] |
Date: |
Tue, 19 Apr 2011 09:38:58 +0200 |
Great !! thanks to Matt, ron and Dirk for their useful answers.
regards, Ritesh On Mon, Apr 18, 2011 at 4:00 PM, Ritesh Sugandhi <[email protected]> wrote:
Dear Sir,
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}
"== 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
- References:
- How to know type of record at client end [Py-epics v3.1.1 interface ] Ritesh Sugandhi
- Navigate by Date:
- Prev:
Re: ca.py - Throws error - workaround Matt Newville
- Next:
RE: Does EPICS Base support multi-thread on vxWorks 6.3? lorna . zhang
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: How to know type of record at client end [Py-epics v3.1.1 interface ] Dirk Zimoch
- Next:
EDM site unavailable? Ernest L. Williams Jr.
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|