pvConnect | index /home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/pvConnect.py |
simplified connections to an EPICS PV using CaChannel
Provides these classes:
CaPollWx
Use in WX-based GUIs to call ca.poll() in the background
@param interval_s: [float] interval between calls to ca.poll()
EpicsPv
manage a CaChannel connection with an EPICS PV
@param name: [string] EPICS PV to connect
Provides these utility routines:
on_exit(timer)
Exit handler to stop the ca.poll()
@param timer: CaPollWx object
CaPoll()
Use in non-GUI scripts to call ca.poll() in the background
GetRTYP(pv)
Returns the record type of "pv"
@param pv:[string]
@return: [string] EPICS record type or None if cannot connect
testConnect(pv)
Tests if a CaChannel connection can be established to "pv"
@param pv:[string]
@return: True if can connect, otherwise False
receiver(value)
Example response to an EPICS monitor on the channel
@param value: str(epics_args['pv_value'])
@version:
########### SVN repository information ###################
# $Date: 2010-06-03 16:04:15 -0500 (Thu, 03 Jun 2010) $
# $Author: jemian $
# $Revision: 184 $
# $URL: https://subversion.xor.aps.anl.gov/bcdaext/wxmtxy/trunk/pvConnect.py $
# $Id: pvConnect.py 184 2010-06-03 21:04:15Z jemian $
########### SVN repository information ###################
Modules | ||||||
|
Classes | ||||||||||||||||||
|
Functions | ||
|
Data | ||
IMPORTED_CACHANNEL = True IMPORTED_WX = True |