pydevices/HtsDevices/acq400_hapi/acq400.py
def configure_pre_post(self, role, trigger=[1,1,1], event=[1,1,1], pre=50000, post=100000):
        """
        Configure UUT for pre/post mode. Default: soft trigger starts the
        data flow and trigger the event on a hard external trigger.

        "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 pre trigger samples: 50k.
        Default post trigger samples: 100k.
        """
        if pre > post:
            print("PRE samples cannot be greater than POST samples. Config not set.")
            return None
        trg = 1 if trigger[1] == 1 else 0
        self.s0.transient = "PRE={} POST={} SOFT_TRIGGER={}".format(pre, post, trg)

        self.s1.TRG = trigger[0]
        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 = event[0]
        self.s1.EVENT0_DX = event[1]
        self.s1.EVENT0_SENSE = event[2]

        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 pre/post mode. Default: soft trigger starts the
        data flow and trigger the event on a hard external trigger.

        "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 pre trigger samples: 50k.
        Default post trigger samples: 100k.
        
Configure UUT for pre/post mode. Default: soft trigger starts the
data flow and trigger the event on a hard external trigger.

"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 pre trigger samples: 50k.
Default post trigger samples: 100k.
Configure UUT for pre / post mode . Default : soft trigger starts the data flow and trigger the event on a hard external trigger . " 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 pre trigger samples : 50k . Default post trigger samples : 100k .
def configure_pre_post(self, role, trigger=[1,1,1], event=[1,1,1], pre=50000, post=100000):
        if pre > post:
            print("PRE samples cannot be greater than POST samples. Config not set.")
            return None
        trg = 1 if trigger[1] == 1 else 0
        self.s0.transient = "PRE={} POST={} SOFT_TRIGGER={}".format(pre, post, trg)
        self.s1.TRG = trigger[0]
        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 = event[0]
        self.s1.EVENT0_DX = event[1]
        self.s1.EVENT0_SENSE = event[2]
        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_pre_post ( self , role , trigger = [ 1 , 1 , 1 ] , event = [ 1 , 1 , 1 ] , pre = 50000 , post = 100000 ) : if pre > post : print ( "PRE samples cannot be greater than POST samples. Config not set." ) return None trg = 1 if trigger [ 1 ] == 1 else 0 self . s0 . transient = "PRE={} POST={} SOFT_TRIGGER={}" . format ( pre , post , trg ) self . s1 . TRG = trigger [ 0 ] 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 = event [ 0 ] self . s1 . EVENT0_DX = event [ 1 ] self . s1 . EVENT0_SENSE = event [ 2 ] 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 pre/post mode.
Configure UUT for pre / post mode .
"""
        Configure UUT for pre/post mode. Default: soft trigger starts the
        data flow and trigger the event on a hard external trigger.

        "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 pre trigger samples: 50k.
        Default post trigger samples: 100k.
        """ # Make sure RGM mode is turned off.
self
role
trigger
event
pre
post