examples/a121/subsweeps.py

examples/a121/subsweeps.py#

 1# Copyright (c) Acconeer AB, 2022-2023
 2# All rights reserved
 3
 4import acconeer.exptool as et
 5from acconeer.exptool import a121
 6
 7
 8args = a121.ExampleArgumentParser().parse_args()
 9et.utils.config_logging(args)
10
11client = a121.Client.open(**a121.get_client_args(args))
12
13sensor_config = a121.SensorConfig(
14    subsweeps=[
15        a121.SubsweepConfig(
16            start_point=25,
17            step_length=2,
18            num_points=30,
19            profile=a121.Profile.PROFILE_1,
20            hwaas=10,
21        ),
22        a121.SubsweepConfig(
23            start_point=75,
24            step_length=4,
25            num_points=25,
26            profile=a121.Profile.PROFILE_3,
27            hwaas=20,
28        ),
29    ],
30    sweeps_per_frame=10,
31)
32
33client.setup_session(sensor_config)
34client.start_session()
35
36for i in range(3):
37    result = client.get_next()
38
39    print(f"\nResult {i + 1} subframes:")
40    print(result.subframes)
41
42client.stop_session()
43client.close()

View this example on GitHub: acconeer/acconeer-python-exploration