From: W. Trevor King Date: Thu, 26 Apr 2012 18:27:27 +0000 (-0400) Subject: Oops, convert period from seconds to nanoseconds in cmd.py demo. X-Git-Tag: 0.5~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a46f46b0f694d958a3dcc9622e63c8937299cad8;p=pycomedi.git Oops, convert period from seconds to nanoseconds in cmd.py demo. --- diff --git a/doc/demo/cmd.py b/doc/demo/cmd.py index 3d57d03..ea164be 100755 --- a/doc/demo/cmd.py +++ b/doc/demo/cmd.py @@ -60,7 +60,7 @@ def prepare_command(subdevice, channels, period, num_scans): the parts we want. """ command = subdevice.get_cmd_generic_timed( - len(channels), scan_period_ns=period) + len(channels), scan_period_ns=period*1e9) command.chanlist = channels command.stop_src = _constant.TRIG_SRC.count command.stop_arg = num_scans