Experimental Physics and Industrial Control System
What you mean by
"When ever the record attends the –ive values"?
I did a test with your snippet, into which I have added
the trivial missing imports. I have attached the script and
database
My test system is:
EPICS 3.14.8
Python 2.4.3
Here is the output. Could you run my attached script and post the
output?
###
IOC Log ####
slslc06> dbpf long
1234
DBR_LONG:
1234 0x4d2
slslc06> dbpf long
2147483647
DBR_LONG:
2147483647 0x7fffffff
slslc06> dbpf long
2147483648
DBR_LONG:
2147483647
0x7fffffff
slslc06>
####
Python Monitor ###
2010-12-01
09:40:59
long 2010-12-01 09:40:59
0
long 2010-12-01 09:41:16
1234
long 2010-12-01 09:41:33
2147483647
######################
Best,
Xiaoqiang
Dear Sir,
We are using a client application develop using CaChannel-1.5
epics python interface library. The CA server is exposing a longout record which
we are interested in monitoring. When ever the record attends the –ive
values. The client shows 2**32-val instead of value. while the
same code works well with ao record type .
The Code is as below:
###################################################
def eventMon(epics_args, user_args):
global monPV, now
print monPV, now, epics_args['pv_value']
def main():
global stop, now
try:
monChan = CaChannel()
monChan.search(monPV)
monChan.pend_io()
print now
except CaChannelException, status:
print ca.message(status)
try:
monChan.add_masked_array_event(ca.dbf_type_to_DBR_STS(monChan.field_type()),
\
None, ca.DBE_VALUE |
ca.DBE_ALARM, eventMon)
except CaChannelException, status:
print ca.message(status)
while not stop:
now = strftime('\t%Y-%m-%d %X\t')
ca.pend_event(0.5)
###################################################
Best Regards,
Ritesh Sugandhi
Attachment:
a.db
Description: a.db
Attachment:
a.py
Description: a.py
- References:
- Long out record PV Monitoring error in client using CaChannel-1.5 python interface Ritesh Sugandhi
- Navigate by Date:
- Prev:
How to use BOY/OPI to produce standalone simple displays Jimmy Johnson
- Next:
Build EPICS Base3.14.9 on Windows 张玉亮
- 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
2025
- Navigate by Thread:
- Prev:
RE: Long out record PV Monitoring error in client using CaChannel-1.5 python interface Pam Gurd
- Next:
RE: Long out record PV Monitoring error in client using CaChannel-1.5 python interface Wang Xiaoqiang
- 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
2025