Commit a83db9ac authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Add gpsdo option

parent 9fbb90f6
......@@ -22,7 +22,7 @@ if __name__ == "__main__":
parser.add_argument("--subdev", help="subdevice specification", default="")
parser.add_argument("--channel", help="which channel to use", default=0)
parser.add_argument("--bw", help="analog frontend filter bandwidth in Hz", required=True)
parser.add_argument("--ref", help="reference source", choices=["internal", "external", "mimo"])
parser.add_argument("--ref", help="reference source", choices=["internal", "external", "mimo", "gpsdo"], default="gpsdo")
parser.add_argument("--wirefmt", help="wire format", choices=["sc8", "sc16", "s16"])
parser.add_argument("--setup", help="seconds of setup time", default=1.0)
parser.add_argument("--progress", help="periodically display short-term bandwidth", action="store_true")
......@@ -56,6 +56,7 @@ if __name__ == "__main__":
arg_list += ["--" + key, str(value)]
print("Running ./usrp_to_file " + " ".join(arg_list))
exit_code =["./usrp_to_file"] + arg_list)
except KeyboardInterrupt:
......@@ -358,7 +358,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
("subdev", po::value<std::string>(&subdev), "subdevice specification")
("channel", po::value<size_t>(&channel)->default_value(0), "which channel to use")
("bw", po::value<double>(&bw), "analog frontend filter bandwidth in Hz")
("ref", po::value<std::string>(&ref)->default_value("internal"), "reference source (internal, external, mimo)")
("ref", po::value<std::string>(&ref)->default_value("internal"), "reference source (internal, external, mimo, gpsdo)")
("wirefmt", po::value<std::string>(&wirefmt)->default_value("sc16"), "wire format (sc8, sc16 or s16)")
("setup", po::value<double>(&setup_time)->default_value(1.0), "seconds of setup time")
("progress", "periodically display short-term bandwidth")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment