Lines Matching refs:samples
28 Get 5000hz data from device number 7536, with unlimited number of samples
29 python monsoon.py --samples -1 --hz 5000 --serialno 7536
32 python monsoon.py --samples 100 --hz 200
35 python monsoon.py --samples -1 --hz 200 --device /dev/ttyACM0
37 Output columns for collection with --samples, separated by space:
222 """ Return some current samples. Call StartDataCollection() first. """
328 useful_flags = ["voltage", "status", "usbpassthrough", "samples", "current"]
368 if FLAGS.samples:
374 # Collect and average samples as specified
378 # 'offset' = (consumed samples) * FLAGS.hz - (emitted samples) * native_hz
382 # past n samples for rolling average
387 while emitted < FLAGS.samples or FLAGS.samples == -1:
388 # The number of raw samples to consume before emitting the next output
390 if need > len(chan_buffers[0]): # still need more input samples
396 # Have enough data, generate output samples.
397 # Adjust for consuming 'need' input samples.
443 flags.DEFINE_integer("samples", None,
444 "Collect and print this many samples. "
446 flags.DEFINE_integer("hz", 5000, "Print this many samples/sec")