def __init__(self, guiTop, cmd, dataWriter, srp, **kwargs):
        super().__init__(name='cryoAsicGen1',
                         description='cryo ASIC',
                         **kwargs)
        self.add(dataWriter)
        self.guiTop = guiTop
        self.cmd = cmd

        @self.command()
        def Trigger():
            self.cmd.sendCmd(0, 0)
            if (self.EpixHRGen1Cryo.CryoAsic0.test.get()
                    and dataWriter.frameCount.get()):
                pulserAmplitude = self.dataWriter.frameCount.get(
                )  #self.EpixHRGen1Cryo.CryoAsic0.Pulser.get()
                if pulserAmplitude % 1024 == 1023:
                    pulserAmplitude = 0
                else:
                    pulserAmplitude += 1
                self.EpixHRGen1Cryo.CryoAsic0.Pulser.set(pulserAmplitude)

        # Add Devices
        if (args.type == 'kcu1500'):
            coreMap = rogue.hardware.axi.AxiMemMap('/dev/datadev_0')
            self.add(XilinxKcu1500Pgp3(memBase=coreMap))
        self.add(
            fpga.EpixHRGen1Cryo(name='EpixHRGen1Cryo',
                                offset=0,
                                memBase=srp,
                                hidden=False,
                                enabled=True))
        self.add(
            pyrogue.RunControl(name='runControl',
                               description='Run Controller hr',
                               cmd=self.Trigger,
                               rates={
                                   1: '1 Hz',
                                   2: '2 Hz',
                                   4: '4 Hz',
                                   8: '8 Hz',
                                   10: '10 Hz',
                                   30: '30 Hz',
                                   60: '60 Hz',
                                   120: '120 Hz'
                               }))
    def __init__(self, guiTop, cmd, dataWriter, srp, **kwargs):
        super().__init__(name='cryoAsicGen1',
                         description='cryo ASIC',
                         **kwargs)
        self.add(dataWriter)
        self.guiTop = guiTop
        self.cmd = cmd

        @self.command()
        def Trigger():
            self.cmd.sendCmd(0, 0)

        # Add Devices
        #if ( args.type == 'kcu1500' ):
        #coreMap = rogue.hardware.axi.AxiMemMap('/dev/datadev_0')
        #self.add(XilinxKcu1500Pgp3(memBase=coreMap))
        self.add(
            fpga.EpixHRGen1Cryo(name='EpixHRGen1Cryo',
                                offset=0,
                                memBase=srp,
                                hidden=False,
                                enabled=True))