Ejemplo n.º 1
0
def get_parser():
    parser = get_rack_argv_parser("Start the DG645 rack.")

    parser.add_argument("name_address", nargs="+", type=str,
                        help="name and VISA address of the DG645, in the format of "
                             "{name}@{address} (multiple instances can be loaded)")
    return parser
Ejemplo n.º 2
0
def get_parser():
    parser = get_rack_argv_parser("Start the Keysight M3202A rack.")

    parser.add_argument(
        "name_location",
        nargs="+",
        type=str,
        help="name and location of the M3202A, in the format of "
        "{name}@{chasis}:{slot} (multiple instances can be loaded)")
    return parser
Ejemplo n.º 3
0
def get_parser():
    model_supported = ", ".join(model_class_map.keys())
    parser = get_rack_argv_parser("Start the general VNA rack.")

    parser.add_argument("model_name_address", nargs="+", type=str,
                        help="model, name and VISA address of the VNA, in the format of "
                             "{name}:{model}@{address} (multiple instances can be loaded). "
                             f"Model supported: {model_supported}."
                        )
    return parser
Ejemplo n.º 4
0
def get_parser():
    parser = get_rack_argv_parser("Start the Alazar Digitizer rack.")

    parser.add_argument(
        "name_address",
        nargs="+",
        type=str,
        help="name and address of the PSG, in the format of "
        "{name}@{address} (multiple instances can be loaded)."
        "Address format: ^ATS(9360|9850|9870)::SYSTEM([0-9]+)::([0-9]+)(|::INSTR)$"
    )
    return parser
Ejemplo n.º 5
0
def get_parser():
    parser = get_rack_argv_parser(
        "Start the general PSG rack. Support: SRS series, "
        "Keysight series, etc.")

    parser.add_argument(
        "name_address",
        nargs="+",
        type=str,
        help="name and VISA address of the PSG, in the format of "
        "{name}@{address} (multiple instances can be loaded)")
    return parser
Ejemplo n.º 6
0
def get_parser():
    # get_rack_argv_parser will create a argparse.ArgumentParser, with some
    # common rack arguments like the address to the host, the port it uses, etc.
    parser = get_rack_argv_parser("Start dummy rack for testing.")

    # Add arguments used in creating dummy devices.
    parser.add_argument(
        "name_data",
        nargs="+",
        type=str,
        help="name and dummy data of the dummy device, in the format of "
        "{name}:{data} (multiple instances can be loaded)")
    return parser
Ejemplo n.º 7
0
def get_parser():
    parser = get_rack_argv_parser("Start the SRS DC source rack.")

    parser.add_argument("--address",
                        type=str,
                        dest="address",
                        help="VISA address of the SRS")
    parser.add_argument("--name",
                        type=str,
                        dest="name",
                        default="",
                        help="name of the SRS")
    return parser