Experimental Physics and
| |||||||||||||||||
|
Dear Sir, We are using a client application develop using CaChannel-1.5 epics python interface library. The CA server is exposing a longout record which we are interested in monitoring. When ever the record attends the âive values. The client showsÂÂ2**32-val instead of value.Âwhile the same code works well with ao record type . The Code is as below: ################################################### def eventMon(epics_args, user_args): ÂÂglobal monPV, now
ÂÂprint monPV, now, epics_args['pv_value'] def main(): ÂÂglobal stop, now ÂÂtry: ÂÂ ÂmonChan = CaChannel()
ÂÂ ÂmonChan.search(monPV) ÂÂ ÂmonChan.pend_io() ÂÂ Âprint now ÂÂexcept CaChannelException, status: ÂÂ Âprint ca.message(status) ÂÂtry:
ÂÂ ÂmonChan.add_masked_array_event(ca.dbf_type_to_DBR_STS(monChan.field_type()), \ ÂÂ Â Â Â ÂNone, ca.DBE_VALUE | ca.DBE_ALARM, eventMon) ÂÂexcept CaChannelException, status:
ÂÂ Âprint ca.message(status) ÂÂwhile not stop: ÂÂ Ânow = strftime('\t%Y-%m-%d %X\t') ÂÂ Âca.pend_event(0.5) ###################################################
Best Regards, Ritesh SugandhiÂ
| ||||||||||||||||
ANJ, 01 Dec 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |