pydevices/HtsDevices/acq400_hapi/acq400.py
def configure_post(self, role, trigger=[1,1,1], post=100000):
        """
        Configure UUT for a regular transient capture. Default: internal soft
        trigger starts the capture.

        "Role" is a mandatory argument. For master systems, role should be the
        string "master", if the system is a slave then role should be the string
        "slave"

        Default post samples: 100k.
        """
        print(trigger)
        self.s0.transient = "PRE=0 POST={} SOFT_TRIGGER={}".format(post, trigger[1])

        self.s1.TRG = 1
        if role == "slave" or trigger[1] == 0:
            self.s1.TRG_DX = 0
        else:
            self.s1.TRG_DX = 1
        self.s1.TRG_SENSE = trigger[2]

        self.s1.EVENT0 = 0
        self.s1.EVENT0_DX = 0
        self.s1.EVENT0_SENSE = 0

        self.s1.RGM = 0
        self.s1.RGM_DX = 0
        self.s1.RGM_SENSE = 0

        self.s1.RGM = 0 # Make sure RGM mode is turned off.
        self.s0.SIG_EVENT_SRC_0 = 0

        return None

        Configure UUT for a regular transient capture. Default: internal soft
        trigger starts the capture.

        "Role" is a mandatory argument. For master systems, role should be the
        string "master", if the system is a slave then role should be the string
        "slave"

        Default post samples: 100k.
        
Configure UUT for a regular transient capture. Default: internal soft
trigger starts the capture.

"Role" is a mandatory argument. For master systems, role should be the
string "master", if the system is a slave then role should be the string
"slave"

Default post samples: 100k.
Configure UUT for a regular transient capture . Default : internal soft trigger starts the capture . " Role " is a mandatory argument . For master systems role should be the string " master " if the system is a slave then role should be the string " slave " Default post samples : 100k .
def configure_post(self, role, trigger=[1,1,1], post=100000):
        print(trigger)
        self.s0.transient = "PRE=0 POST={} SOFT_TRIGGER={}".format(post, trigger[1])
        self.s1.TRG = 1
        if role == "slave" or trigger[1] == 0:
            self.s1.TRG_DX = 0
        else:
            self.s1.TRG_DX = 1
        self.s1.TRG_SENSE = trigger[2]
        self.s1.EVENT0 = 0
        self.s1.EVENT0_DX = 0
        self.s1.EVENT0_SENSE = 0
        self.s1.RGM = 0
        self.s1.RGM_DX = 0
        self.s1.RGM_SENSE = 0
        self.s1.RGM = 0 
        self.s0.SIG_EVENT_SRC_0 = 0
        return None
def configure_post ( self , role , trigger = [ 1 , 1 , 1 ] , post = 100000 ) : print ( trigger ) self . s0 . transient = "PRE=0 POST={} SOFT_TRIGGER={}" . format ( post , trigger [ 1 ] ) self . s1 . TRG = 1 if role == "slave" or trigger [ 1 ] == 0 : self . s1 . TRG_DX = 0 else : self . s1 . TRG_DX = 1 self . s1 . TRG_SENSE = trigger [ 2 ] self . s1 . EVENT0 = 0 self . s1 . EVENT0_DX = 0 self . s1 . EVENT0_SENSE = 0 self . s1 . RGM = 0 self . s1 . RGM_DX = 0 self . s1 . RGM_SENSE = 0 self . s1 . RGM = 0 self . s0 . SIG_EVENT_SRC_0 = 0 return None
Configure UUT for a regular transient capture.
Configure UUT for a regular transient capture .
"""
        Configure UUT for a regular transient capture. Default: internal soft
        trigger starts the capture.

        "Role" is a mandatory argument. For master systems, role should be the
        string "master", if the system is a slave then role should be the string
        "slave"

        Default post samples: 100k.
        """ # Make sure RGM mode is turned off.
self
role
trigger
post