aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gr-usrptest/apps/usrp_selftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gr-usrptest/apps/usrp_selftest.py')
-rwxr-xr-xtools/gr-usrptest/apps/usrp_selftest.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/gr-usrptest/apps/usrp_selftest.py b/tools/gr-usrptest/apps/usrp_selftest.py
new file mode 100755
index 000000000..3dcd4e6ca
--- /dev/null
+++ b/tools/gr-usrptest/apps/usrp_selftest.py
@@ -0,0 +1,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()