Changeset 83


Ignore:
Timestamp:
Nov 6, 2009 12:30:04 PM (14 years ago)
Author:
jemian
Message:

Refs #2: progress ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • epics2xml/epics2xml.py

    r82 r83  
    235235        return doc.toprettyxml(indent="  ")
    236236
     237    def receiver(self, epics_args, user_args):
     238        '''Example response to an EPICS monitor on the channel
     239           @param value: str(epics_args['pv_value'])'''
     240        value = epics_args['pv_value']
     241        print 'receiver', 'updated value:', str(value)
     242
    237243
    238244if __name__ == '__main__':
    239245    cf = Epics2Xml("config.xml")
    240246    cf.ReadConfigFile()
     247    # connect with EPICS here and start waiting for events
     248    # How to save periodically?
     249    # How to throttle the output file update rate?
     250   
     251    #----------------------------
    241252    # load some artificial data to test
    242253    cf.setPv("S:SRcurrent:AI", '99.9853')
    243254    cf.setPv("APS:BarometricPressure:MBR", '992.083')
    244255    print cf.__repr__()
     256    #----------------------------
Note: See TracChangeset for help on using the changeset viewer.