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: "Wang Xiaoqiang" <[email protected]>
To: "Ritesh Sugandhi" <[email protected]>, <[email protected]>
Cc: Di Maio Franck <[email protected]>
Date: Wed, 1 Dec 2010 09:56:09 +0100
 
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
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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
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  <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 ·