Experimental Physics and
| |||||||||||||||||
|
What you mean by
"When ever the record attends the –ive values"?
Are you using CaChannel 1.5 from http://sourceforge.net/projects/igor2epics/files/CaChannel/ ?
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:
Scientific Linux 5.1
x86 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
From: Ritesh Sugandhi [mailto:[email protected]] Sent: Tuesday, November 30, 2010 4:53 PM To: [email protected] Cc: [email protected]; Wang Xiaoqiang; Di Maio Franck Subject: Long out record PV Monitoring error in client using CaChannel-1.5 python interface 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 Attachment:
a.py
| ||||||||||||||||
ANJ, 01 Dec 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |