aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gr-usrptest/apps/usrp_selftest.py
blob: 3dcd4e6ca8a59933ee33366463b479afec7296cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python

import argparse
from usrptest import parsers
from usrptest.flowgraphs import selftest_fg


def main():
    parser = argparse.ArgumentParser()
    parser = parsers.add_core_args(parser)
    parser = parsers.add_selftest_args(parser)
    args = parser.parse_args()
    my_flowgraph = selftest_fg.selftest_fg(args.frequency, args.samp_rate, args.dphase ,args.devices)
    results = my_flowgraph.run()
    print(results)
if __name__ == '__main__':
    main()