Changeset 83
- Timestamp:
- Nov 6, 2009 12:30:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
epics2xml/epics2xml.py
r82 r83 235 235 return doc.toprettyxml(indent=" ") 236 236 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 237 243 238 244 if __name__ == '__main__': 239 245 cf = Epics2Xml("config.xml") 240 246 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 #---------------------------- 241 252 # load some artificial data to test 242 253 cf.setPv("S:SRcurrent:AI", '99.9853') 243 254 cf.setPv("APS:BarometricPressure:MBR", '992.083') 244 255 print cf.__repr__() 256 #----------------------------
Note: See TracChangeset
for help on using the changeset viewer.