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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Long out record PV Monitoring error in client using CaChannel-1.5 python interface |
From: | "Pam Gurd" <[email protected]> |
To: | "'Ritesh Sugandhi'" <[email protected]>, <[email protected]> |
Cc: | "'Di Maio Franck'" <[email protected]> |
Date: | Tue, 30 Nov 2010 08:57:27 -0800 |
The code may interpret long values as unsigned integers. Â(In some cases, that might be what you would want.)Â ÂIt will take me some time to be able to look at this. Â Pam. From: Ritesh Sugandhi [mailto:[email protected]] 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 __________ Information from ESET Smart Security, version of virus signature database 5661 (20101130) __________ The message was checked by ESET Smart Security. http://www.eset.com |