EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== 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]]
Sent: November-30-10 7:53 AM
To: [email protected]
Cc: [email protected]; [email protected]; 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 



__________ Information from ESET Smart Security, version of virus signature database 5661 (20101130) __________

The message was checked by ESET Smart Security.

http://www.eset.com

References:
Long out record PV Monitoring error in client using CaChannel-1.5 python interface Ritesh Sugandhi

Navigate by Date:
Prev: Long out record PV Monitoring error in client using CaChannel-1.5 python interface Ritesh Sugandhi
Next: How to use BOY/OPI to produce standalone simple displays Jimmy Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Long out record PV Monitoring error in client using CaChannel-1.5 python interface Ritesh Sugandhi
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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 01 Dec 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·