Source code for acq1014_configure_transient
#!/usr/bin/env python
"""
configure transient
acq1014_configure_transient UUT1 UUT2 [NPOST] [trigger=int|ext|ext2]
usage: acq1014_configure_transient.py [-h] [--pre PRE] [--post POST]
[--clk CLK] [--trg TRG]
[uuts [uuts ...]]
configure multiple acq1014
positional arguments:
uuts uut pairs: m1,m2 [s1,s2 ...]
optional arguments:
-h, --help show this help message and exit
--pre PRE pre trigger length
--post POST post trigger length
--clk CLK clk "int|ext SR [CR]"
--trg TRG trg "int|ext rising|falling"
"""
import sys
import acq400_hapi
import argparse
from acq400_hapi import intSI as intSI
[docs]def run_main():
parser = argparse.ArgumentParser(description='configure multiple acq1014')
parser.add_argument('--pre', default=0, help="pre trigger length")
parser.add_argument('--post', default=100000, help="post trigger length")
parser.add_argument('--clk', default="int,80000000", help='clk "int|ext,SR[,CR]"')
parser.add_argument('--trg', default="int", help='trg "int|ext rising|falling"')
parser.add_argument('uuts', nargs='*', help="uut pairs: m1,m2 [s1,s2 ...]")
configure_shot(parser.parse_args())
# execution starts here
if __name__ == '__main__':
run_main()