examples/a121/extended_config.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
13session_config = a121.SessionConfig(
14 [
15 {
16 1: a121.SensorConfig(
17 sweeps_per_frame=10,
18 )
19 },
20 {
21 1: a121.SensorConfig(
22 sweeps_per_frame=20,
23 )
24 },
25 ],
26 extended=True,
27)
28
29client.setup_session(session_config)
30client.start_session()
31
32for i in range(3):
33 extended_result = client.get_next()
34
35 print(f"\nExtended result {i + 1}:")
36 print(extended_result)
37
38client.stop_session()
39client.close()
View this example on GitHub: acconeer/acconeer-python-exploration