Comment 9 for bug 1877113

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

My test script. To show that a subscription is created.

import epicscorelibs.path.cothread
from cothread import Event
from cothread.catools import caput, camonitor

PV='LCam1::SYSRESET'

evt = Event()
def show(S, evt=evt):
    print("Update", S)
    evt.Signal(S)

S = camonitor(PV, show)

evt.Wait() # wait for initial update
print('kill')

caput(PV, 1)
S.close()
evt.Wait(1.0) # will timeout