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  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Question about return ping value by using pcaspy in camonitor
From: lzf neu <[email protected]>
To: "[email protected]" <[email protected]>
Date: Tue, 6 Sep 2016 08:37:28 +0000

Hi all,


i want to display the TEST:PING value in camonitor, which is the return value by ping 127.0.0.1.

i know pcaspy can implement this, but i am newer in it.

below is the pcaspy program i wrote and there is an error.

Could you give me some advice and thanks in advance.


#!/usr/bin/env python
import os
from pcaspy import Driver, SimpleServer
prefix = 'TEST:'
pvdb = {
    'PING' : {
         a,
    },
}

class myDriver(Driver):
    def __init__(self):
        super(myDriver, self).__init__()
    def determine():
        a=os.system("ping -c 1 -w 1 127.0.0.1")
        if (a==0):
            print "communication established !"

if __name__ == '__main__':
    server = SimpleServer()
    server.createPV(prefix, pvdb)
    driver = myDriver()

    # process CA transactions
    while True:
        server.process(0.1)


Replies:
Re: Question about return ping value by using pcaspy in camonitor Wang Xiaoqiang (PSI)
Question about display history data in the form of data reports table in CSS boy opi ? lzf neu

Navigate by Date:
Prev: Support for CAEN SY4527 David Brodrick
Next: ProcServ suggestion - add Date/Time to startup lines Dudley, David
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Support for CAEN SY4527 Jiro Fujita
Next: Re: Question about return ping value by using pcaspy in camonitor Wang Xiaoqiang (PSI)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 14 Sep 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·