diff --git a/lppinstru/discovery.py b/lppinstru/discovery.py --- a/lppinstru/discovery.py +++ b/lppinstru/discovery.py @@ -320,10 +320,11 @@ class Discovery(object): if syncOnTrigger: self.analog_out_set_trigger(channel) self.__libdwf.FDwfAnalogOutRepeatSet(self.__hdwf, c_int(channel),c_int(0)) - if frequency >= triggerFrq: - runDuration = triggerFrq - else: - runDuration = triggerFrq/frequency +# if frequency >= triggerFrq: + runDuration = triggerFrq +# Doesn't work! try with triggerFrq=1 and frequency=0.8 +# else: +# runDuration = triggerFrq/frequency self.__libdwf.FDwfAnalogOutRunSet(self.__hdwf, c_int(channel),c_double(runDuration)) self.__libdwf.FDwfAnalogOutConfigure(self.__hdwf, c_int(channel), c_bool(True))