pyxcp 0.22.12__tar.gz → 0.22.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyxcp might be problematic. Click here for more details.
- {pyxcp-0.22.12 → pyxcp-0.22.14}/CMakeLists.txt +2 -2
- {pyxcp-0.22.12 → pyxcp-0.22.14}/PKG-INFO +1 -1
- {pyxcp-0.22.12 → pyxcp-0.22.14}/build_ext.py +2 -1
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyproject.toml +2 -2
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/__init__.py +1 -1
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/daqlist.hpp +4 -1
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/extension_wrapper.cpp +1 -1
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/helper.hpp +16 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/__init__.py +1 -1
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/optimize/__init__.py +1 -1
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/optimize/binpacking.py +1 -1
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/run_daq.py +15 -13
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/base.py +4 -5
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/utils.py +1 -1
- pyxcp-0.22.14/pyxcp/vector/__init__.py +0 -0
- pyxcp-0.22.12/pyxcp/cpp_ext/__init__.py +0 -8
- {pyxcp-0.22.12 → pyxcp-0.22.14}/LICENSE +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/README.md +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/EtasCANMonitoring.a2l +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/EtasCANMonitoring.aml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCP_Common.aml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonCAN.aml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonEth.aml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonFlx.aml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonSxI.aml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonUSB.aml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_CAN.a2l +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_Eth.a2l +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_Flx.a2l +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_SxI.a2l +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_USB.a2l +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/asam/__init__.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/asam/types.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/asamkeydll.c +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/asamkeydll.sh +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/checksum.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cmdline.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/config/__init__.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/config/legacy.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/constants.py +0 -0
- {pyxcp-0.22.12/pyxcp/scripts → pyxcp-0.22.14/pyxcp/cpp_ext}/__init__.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/bin.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/blockmem.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/event.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/mcobject.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/tsqueue.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/scheduler.cpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/scheduler.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/stim.cpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/stim.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/stim_wrapper.cpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/dllif.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/errormatrix.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_can.toml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_can_user.toml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_can_vector.json +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_can_vector.toml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_eth.toml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_nixnet.json +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_socket_can.toml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_sxi.json +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_sxi.toml +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_arrow.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_csv.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_excel.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_mdf.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_sqlite.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_policy.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_read_benchmark.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_skel.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_unlock.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_user_supplied_driver.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcphello.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcphello_recorder.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/master/__init__.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/master/errorhandler.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/master/master.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/py.typed +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/__init__.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_clang.cmd +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_clang.sh +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_gcc.cmd +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_gcc.sh +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_gcc_arm.sh +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/converter/__init__.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/lz4.c +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/lz4.h +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/lz4hc.c +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/lz4hc.h +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/mio.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/reader.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/reco.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/recorder.rst +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/rekorder.cpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/rekorder.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/setup.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/test_reko.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/unfolder.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/wrap.cpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/writer.hpp +0 -0
- {pyxcp-0.22.12/pyxcp/stim → pyxcp-0.22.14/pyxcp/scripts}/__init__.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/pyxcp_probe_can_drivers.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_examples.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_fetch_a2l.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_id_scanner.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_info.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_profile.py +0 -0
- {pyxcp-0.22.12/pyxcp/vector → pyxcp-0.22.14/pyxcp/stim}/__init__.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_asam_types.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_binpacking.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_can.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_checksum.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_daq.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_frame_padding.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_master.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_transport.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_utils.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/timing.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/__init__.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/base_transport.hpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/can.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/eth.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/sxi.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/transport_wrapper.cpp +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/usb_transport.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/types.py +0 -0
- {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/vector/map.py +0 -0
|
@@ -29,13 +29,13 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
|
29
29
|
if (MSVC)
|
|
30
30
|
SET(MSVC_BASE_OPTIONS "${MSVC_BASE_OPTIONS} /Od /fsanitize=address /Zi")
|
|
31
31
|
else()
|
|
32
|
-
SET(
|
|
32
|
+
SET(GCC_N_CLANG_BASE_OPTIONS "${GCC_N_CLANG_BASE_OPTIONS} -Og -g3 -ggdb --fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined -fsanitize=bounds") # -fsanitize=hwaddress
|
|
33
33
|
endif()
|
|
34
34
|
else ()
|
|
35
35
|
if (MSVC)
|
|
36
36
|
SET(MSVC_BASE_OPTIONS "${MSVC_BASE_OPTIONS} /Ox")
|
|
37
37
|
else()
|
|
38
|
-
SET(
|
|
38
|
+
SET(GCC_N_CLANG_BASE_OPTIONS "${GCC_N_CLANG_BASE_OPTIONS} -O3 --fomit-frame-pointer")
|
|
39
39
|
endif()
|
|
40
40
|
endif ()
|
|
41
41
|
|
|
@@ -119,7 +119,8 @@ def build_extension(debug: bool = False, use_temp_dir: bool = False) -> None:
|
|
|
119
119
|
if py_cfg["libdir"]:
|
|
120
120
|
cmake_args.append(f"-DPython3_LIBRARY={str(Path(py_cfg['libdir']) / Path(py_cfg['library']))}")
|
|
121
121
|
|
|
122
|
-
build_args = [
|
|
122
|
+
build_args = []
|
|
123
|
+
# build_args = ["--config Release", "--verbose"]
|
|
123
124
|
# cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 /path/to/src
|
|
124
125
|
|
|
125
126
|
if sys.platform.startswith("darwin"):
|
|
@@ -36,7 +36,7 @@ dynamic = ["license", "readme", "authors", "requires-python", "description", "cl
|
|
|
36
36
|
[tool.poetry]
|
|
37
37
|
authors = ["Christoph Schueler <cpu.gems@googlemail.com>"]
|
|
38
38
|
name = "pyxcp"
|
|
39
|
-
version = "0.22.
|
|
39
|
+
version = "0.22.14"
|
|
40
40
|
readme = "README.md"
|
|
41
41
|
description = "Universal Calibration Protocol for Python"
|
|
42
42
|
keywords = ["automotive", "ecu", "xcp", "asam", "autosar"]
|
|
@@ -190,7 +190,7 @@ manylinux-aarch64-image = "manylinux_2_35"
|
|
|
190
190
|
[tool.cibuildwheel.linux]
|
|
191
191
|
# archs = ["auto", "aarch64"]
|
|
192
192
|
archs = ["x86_64", "aarch64"]
|
|
193
|
-
before-all = "yum install -y libffi openssl openssl-devel gcc"
|
|
193
|
+
# before-all = "yum install -y libffi openssl openssl-devel gcc libpython3-dev"
|
|
194
194
|
|
|
195
195
|
[tool.pyright]
|
|
196
196
|
include = ["pyxcp", "build_ext.py"]
|
|
@@ -37,6 +37,10 @@ class DaqList {
|
|
|
37
37
|
return m_event_num;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
void set_event_num(std::uint16_t event_num) {
|
|
41
|
+
m_event_num = event_num;
|
|
42
|
+
}
|
|
43
|
+
|
|
40
44
|
bool get_stim() const {
|
|
41
45
|
return m_stim;
|
|
42
46
|
}
|
|
@@ -75,7 +79,6 @@ class DaqList {
|
|
|
75
79
|
|
|
76
80
|
void set_measurements_opt(const std::vector<Bin>& measurements_opt) {
|
|
77
81
|
m_measurements_opt = measurements_opt;
|
|
78
|
-
|
|
79
82
|
auto odt_count = 0u;
|
|
80
83
|
auto total_entries = 0u;
|
|
81
84
|
auto total_length = 0u;
|
|
@@ -64,7 +64,7 @@ PYBIND11_MODULE(cpp_ext, m) {
|
|
|
64
64
|
)
|
|
65
65
|
.def("__repr__", [](const DaqList& self) { return self.to_string(); })
|
|
66
66
|
.def_property("name", &DaqList::get_name, nullptr)
|
|
67
|
-
.def_property("event_num", &DaqList::get_event_num,
|
|
67
|
+
.def_property("event_num", &DaqList::get_event_num, &DaqList::set_event_num)
|
|
68
68
|
.def_property("stim", &DaqList::get_stim, nullptr)
|
|
69
69
|
.def_property("enable_timestamps", &DaqList::get_enable_timestamps, nullptr)
|
|
70
70
|
.def_property("measurements", &DaqList::get_measurements, nullptr)
|
|
@@ -251,6 +251,22 @@ class Timestamp {
|
|
|
251
251
|
std::uint64_t m_initial;
|
|
252
252
|
};
|
|
253
253
|
|
|
254
|
+
template<typename T, typename V>
|
|
255
|
+
T variant_get(V&& value) {
|
|
256
|
+
|
|
257
|
+
T result;
|
|
258
|
+
|
|
259
|
+
const T* value_ptr = std::get_if<T>(&value);
|
|
260
|
+
if (value_ptr == nullptr) {
|
|
261
|
+
result = T{};
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
result = *value_ptr;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
return result;
|
|
268
|
+
}
|
|
269
|
+
|
|
254
270
|
#if 0
|
|
255
271
|
inline void sleep_ms(std::uint64_t milliseconds) {
|
|
256
272
|
std::this_thread::sleep_for(std::chrono::milliseconds(milliseconds));
|
|
@@ -6,7 +6,7 @@ from typing import Dict, List, Optional, TextIO
|
|
|
6
6
|
|
|
7
7
|
from pyxcp import types
|
|
8
8
|
from pyxcp.config import get_application
|
|
9
|
-
from pyxcp.cpp_ext import DaqList
|
|
9
|
+
from pyxcp.cpp_ext.cpp_ext import DaqList
|
|
10
10
|
from pyxcp.daq_stim.optimize import make_continuous_blocks
|
|
11
11
|
from pyxcp.daq_stim.optimize.binpacking import first_fit_decreasing
|
|
12
12
|
from pyxcp.recorder import DaqOnlinePolicy as _DaqOnlinePolicy
|
|
@@ -5,7 +5,7 @@ from itertools import groupby
|
|
|
5
5
|
from operator import attrgetter
|
|
6
6
|
from typing import List
|
|
7
7
|
|
|
8
|
-
from pyxcp.cpp_ext import McObject
|
|
8
|
+
from pyxcp.cpp_ext.cpp_ext import McObject
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def make_continuous_blocks(chunks: List[McObject], upper_bound=None, upper_bound_initial=None) -> List[McObject]:
|
|
@@ -22,23 +22,23 @@ if XCP_LITE:
|
|
|
22
22
|
False,
|
|
23
23
|
False,
|
|
24
24
|
[
|
|
25
|
-
("byteCounter",
|
|
26
|
-
("wordCounter",
|
|
27
|
-
("dwordCounter",
|
|
28
|
-
("sbyteCounter",
|
|
25
|
+
("byteCounter", 0x00023648, 0, "U8"),
|
|
26
|
+
("wordCounter", 0x0002364C, 0, "U16"),
|
|
27
|
+
("dwordCounter", 0x00023650, 0, "U32"),
|
|
28
|
+
("sbyteCounter", 0x00023649, 0, "I8"),
|
|
29
29
|
],
|
|
30
30
|
),
|
|
31
31
|
DaqList(
|
|
32
32
|
"part_2",
|
|
33
|
-
|
|
33
|
+
7,
|
|
34
34
|
False,
|
|
35
35
|
False,
|
|
36
36
|
[
|
|
37
|
-
("swordCounter",
|
|
38
|
-
("sdwordCounter",
|
|
39
|
-
("channel1",
|
|
40
|
-
("channel2",
|
|
41
|
-
("channel3",
|
|
37
|
+
("swordCounter", 0x00023654, 0, "I16"),
|
|
38
|
+
("sdwordCounter", 0x00023658, 0, "I32"),
|
|
39
|
+
("channel1", 0x00023630, 0, "F64"),
|
|
40
|
+
("channel2", 0x00023638, 0, "F64"),
|
|
41
|
+
("channel3", 0x00023640, 0, "F64"),
|
|
42
42
|
],
|
|
43
43
|
),
|
|
44
44
|
]
|
|
@@ -117,8 +117,8 @@ else:
|
|
|
117
117
|
),
|
|
118
118
|
]
|
|
119
119
|
|
|
120
|
-
|
|
121
|
-
daq_parser = DaqRecorder(DAQ_LISTS, "run_daq", 2) # Record to ".xmraw" file.
|
|
120
|
+
daq_parser = DaqToCsv(DAQ_LISTS) # Record to CSV file(s).
|
|
121
|
+
# daq_parser = DaqRecorder(DAQ_LISTS, "run_daq", 2) # Record to ".xmraw" file.
|
|
122
122
|
|
|
123
123
|
with ap.run(policy=daq_parser) as x:
|
|
124
124
|
x.connect()
|
|
@@ -127,12 +127,14 @@ with ap.run(policy=daq_parser) as x:
|
|
|
127
127
|
|
|
128
128
|
x.cond_unlock("DAQ") # DAQ resource is locked in many cases.
|
|
129
129
|
|
|
130
|
+
DAQ_LISTS[1].event_num = 0
|
|
131
|
+
|
|
130
132
|
print("setup DAQ lists.")
|
|
131
133
|
daq_parser.setup() # Execute setup procedures.
|
|
132
134
|
print("start DAQ lists.")
|
|
133
135
|
daq_parser.start() # Start DAQ lists.
|
|
134
136
|
|
|
135
|
-
time.sleep(
|
|
137
|
+
time.sleep(5.0 * 60.0) # Run for 15 minutes.
|
|
136
138
|
|
|
137
139
|
print("Stop DAQ....")
|
|
138
140
|
daq_parser.stop() # Stop DAQ lists.
|
|
@@ -5,11 +5,10 @@ from collections import deque
|
|
|
5
5
|
from typing import Any, Dict, Optional, Set, Type
|
|
6
6
|
|
|
7
7
|
import pyxcp.types as types
|
|
8
|
-
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from ..utils import (
|
|
8
|
+
from pyxcp.cpp_ext.cpp_ext import Timestamp, TimestampType
|
|
9
|
+
from pyxcp.recorder import XcpLogFileWriter
|
|
10
|
+
from pyxcp.timing import Timing
|
|
11
|
+
from pyxcp.utils import (
|
|
13
12
|
CurrentDatetime,
|
|
14
13
|
flatten,
|
|
15
14
|
hexDump,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|