Ejemplo n.º 1
0
 def __getattribute__(self, name):
     """Overload __getattribute__ to make shortcuts for getting object data.
     """
     if name == 'tx_cnt':
         return self.host.device_by_name('tx_cnt%s' %self.offset)
     
     return XengineCasperFpga.__getattribute__(self, name)
Ejemplo n.º 2
0
    def __init__(self, fpga, engine_id=0, host_instrument=None, config_file=None, descriptor='rts_xengine'):
        """Constructor
        """
        XengineCasperFpga.__init__(self, fpga, engine_id, host_instrument, config_file, descriptor)

        self._get_wb_rts_xengine_config()