From a46f46b0f694d958a3dcc9622e63c8937299cad8 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 26 Apr 2012 14:27:27 -0400 Subject: [PATCH] Oops, convert period from seconds to nanoseconds in cmd.py demo. --- doc/demo/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2