next / top / prev
module index






new

create a new PV, starts linking:

x = pythonCA.new(?instr:mech:wname?) flush

flush CA (ca_pend_io)

pythonCA.flush() pend

flush CA (ca_pend_event)

while x.val() != 1: pythonCA.pend(1.0) link

link to new PV

x.link('instr:mech:doublearray')

sync/async

operate in sync/async mode

x.sync(1.0)

x.async()

get

retrieve PV value - return value in sync mode

x.get()

('alpha', 'beta', 'gamma')

put

set PV value

x.put((?a?,?b?,?c?))

monitor/clearmonitor

start/stop monitoring

def my_callback(self):

... print self

...

x.monitor(my_callback)

x.clearmonitor()

x.monitor()

stats

get CA stats

x.stats() {'TS': '00:00:01.000000001', 'type': 0, 'self': 884136L, 'host':'ioc.domain.name', 'async': 1, 'name': 'instr:mech:name','state': 2,

'dim': 1L}

val

get local value

x.val()

(?a?,?b?,?c?)
 
 

Note: objectdestructor free ressources (no leak)

del x