Oops, convert period from seconds to nanoseconds in cmd.py demo.
authorW. Trevor King <wking@tremily.us>
Thu, 26 Apr 2012 18:27:27 +0000 (14:27 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 26 Apr 2012 18:27:27 +0000 (14:27 -0400)
doc/demo/cmd.py

index 3d57d038db86e326144c8b9731d252b0b80596da..ea164be7b614fc8c8b43310918ff91f9cd387170 100755 (executable)
@@ -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