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: Re: Problem in running simple tutorial problems
From: Matt Newville <[email protected]>
To: Jan Cedric Hönig <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Mon, 7 Mar 2016 10:44:45 -0600
Hi Jan,


On Mon, Mar 7, 2016 at 7:43 AM, Jan Cedric Hönig <[email protected]> wrote:
Hi,

I'm planning to use epics, but I"m stuck right at the beginning.
I work on scientific linux 6 so first I start python:
ipython
Python 2.7.5 (default, Jun  5 2014, 14:38:05)

Then I try simple epics commands:
In [1]: import epics
In [2]: p = epics.PV('LargeWaveform')

In [3]: p.connect
Out[3]: <bound method PV.connect of <PV 'LargeWaveform': not connected>>

But I am unable to connect any of my PVs. Am I doing something wrong?


'connect' is a method of a PV.  To run this method, add parens:
   p.connect()

The connection should happen automatically and soon, so that you don't need to explicitly run the connect method, and can just access the data:
   p.get()

You can also checked the value of `p.connected`, which will be True once (and if) the PV is connected.


--Matt

Replies:
Re: Problem in running simple tutorial problems Jan Cedric Hönig
References:
Problem in running simple tutorial problems Jan Cedric Hönig

Navigate by Date:
Prev: Re: Request for help on CSS Hartman, Steven M.
Next: RE: mrfioc2 error at uTCA platform 김지화(빔라인장치팀)
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: Problem in running simple tutorial problems Jan Cedric Hönig
Next: Re: Problem in running simple tutorial problems Jan Cedric Hönig
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, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·