#set polling and events confi for archiving

from tango import *

dev = DeviceProxy('sr/devmapper/3hc')

attlist = dev.get_attribute_list()

for att in attlist:
    print (att)
    attconf = dev.get_attribute_config(att)
    attconf.events.arch_event.archive_abs_change='0.2'
    attconf.events.arch_event.archive_period='60000'
    dev.set_attribute_config(attconf)
    dev.poll_attribute(att,3000)