projects
/
pycomedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f0359e
)
Oops, convert period from seconds to nanoseconds in cmd.py demo.
author
W. Trevor King
<wking@tremily.us>
Thu, 26 Apr 2012 18:27:27 +0000
(14:27 -0400)
committer
W. Trevor King
<wking@tremily.us>
Thu, 26 Apr 2012 18:27:27 +0000
(14:27 -0400)
doc/demo/cmd.py
patch
|
blob
|
history
diff --git
a/doc/demo/cmd.py
b/doc/demo/cmd.py
index 3d57d038db86e326144c8b9731d252b0b80596da..ea164be7b614fc8c8b43310918ff91f9cd387170 100755
(executable)
--- 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