##// END OF EJS Templates
fixed mistake on duration, more complicated expected.
Alexis Jeandet -
r6:cb654cd99d73 default
parent child
Show More
@@ -320,10 +320,11 class Discovery(object):
320 if syncOnTrigger:
320 if syncOnTrigger:
321 self.analog_out_set_trigger(channel)
321 self.analog_out_set_trigger(channel)
322 self.__libdwf.FDwfAnalogOutRepeatSet(self.__hdwf, c_int(channel),c_int(0))
322 self.__libdwf.FDwfAnalogOutRepeatSet(self.__hdwf, c_int(channel),c_int(0))
323 if frequency >= triggerFrq:
323 # if frequency >= triggerFrq:
324 runDuration = triggerFrq
324 runDuration = triggerFrq
325 else:
325 # Doesn't work! try with triggerFrq=1 and frequency=0.8
326 runDuration = triggerFrq/frequency
326 # else:
327 # runDuration = triggerFrq/frequency
327 self.__libdwf.FDwfAnalogOutRunSet(self.__hdwf, c_int(channel),c_double(runDuration))
328 self.__libdwf.FDwfAnalogOutRunSet(self.__hdwf, c_int(channel),c_double(runDuration))
328 self.__libdwf.FDwfAnalogOutConfigure(self.__hdwf, c_int(channel), c_bool(True))
329 self.__libdwf.FDwfAnalogOutConfigure(self.__hdwf, c_int(channel), c_bool(True))
329
330
General Comments 0
You need to be logged in to leave comments. Login now