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.

Files changed (127) hide show
  1. {pyxcp-0.22.12 → pyxcp-0.22.14}/CMakeLists.txt +2 -2
  2. {pyxcp-0.22.12 → pyxcp-0.22.14}/PKG-INFO +1 -1
  3. {pyxcp-0.22.12 → pyxcp-0.22.14}/build_ext.py +2 -1
  4. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyproject.toml +2 -2
  5. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/__init__.py +1 -1
  6. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/daqlist.hpp +4 -1
  7. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/extension_wrapper.cpp +1 -1
  8. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/helper.hpp +16 -0
  9. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/__init__.py +1 -1
  10. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/optimize/__init__.py +1 -1
  11. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/optimize/binpacking.py +1 -1
  12. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/run_daq.py +15 -13
  13. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/base.py +4 -5
  14. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/utils.py +1 -1
  15. pyxcp-0.22.14/pyxcp/vector/__init__.py +0 -0
  16. pyxcp-0.22.12/pyxcp/cpp_ext/__init__.py +0 -8
  17. {pyxcp-0.22.12 → pyxcp-0.22.14}/LICENSE +0 -0
  18. {pyxcp-0.22.12 → pyxcp-0.22.14}/README.md +0 -0
  19. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/EtasCANMonitoring.a2l +0 -0
  20. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/EtasCANMonitoring.aml +0 -0
  21. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCP_Common.aml +0 -0
  22. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonCAN.aml +0 -0
  23. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonEth.aml +0 -0
  24. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonFlx.aml +0 -0
  25. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonSxI.aml +0 -0
  26. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/XCPonUSB.aml +0 -0
  27. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_CAN.a2l +0 -0
  28. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_Eth.a2l +0 -0
  29. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_Flx.a2l +0 -0
  30. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_SxI.a2l +0 -0
  31. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/aml/ifdata_USB.a2l +0 -0
  32. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/asam/__init__.py +0 -0
  33. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/asam/types.py +0 -0
  34. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/asamkeydll.c +0 -0
  35. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/asamkeydll.sh +0 -0
  36. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/checksum.py +0 -0
  37. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cmdline.py +0 -0
  38. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/config/__init__.py +0 -0
  39. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/config/legacy.py +0 -0
  40. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/constants.py +0 -0
  41. {pyxcp-0.22.12/pyxcp/scripts → pyxcp-0.22.14/pyxcp/cpp_ext}/__init__.py +0 -0
  42. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/bin.hpp +0 -0
  43. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/blockmem.hpp +0 -0
  44. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/event.hpp +0 -0
  45. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/mcobject.hpp +0 -0
  46. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/cpp_ext/tsqueue.hpp +0 -0
  47. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/scheduler.cpp +0 -0
  48. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/scheduler.hpp +0 -0
  49. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/stim.cpp +0 -0
  50. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/stim.hpp +0 -0
  51. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/daq_stim/stim_wrapper.cpp +0 -0
  52. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/dllif.py +0 -0
  53. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/errormatrix.py +0 -0
  54. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_can.toml +0 -0
  55. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_can_user.toml +0 -0
  56. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_can_vector.json +0 -0
  57. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_can_vector.toml +0 -0
  58. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_eth.toml +0 -0
  59. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_nixnet.json +0 -0
  60. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_socket_can.toml +0 -0
  61. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_sxi.json +0 -0
  62. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/conf_sxi.toml +0 -0
  63. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_arrow.py +0 -0
  64. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_csv.py +0 -0
  65. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_excel.py +0 -0
  66. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_mdf.py +0 -0
  67. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/ex_sqlite.py +0 -0
  68. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_policy.py +0 -0
  69. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_read_benchmark.py +0 -0
  70. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_skel.py +0 -0
  71. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_unlock.py +0 -0
  72. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcp_user_supplied_driver.py +0 -0
  73. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcphello.py +0 -0
  74. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/examples/xcphello_recorder.py +0 -0
  75. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/master/__init__.py +0 -0
  76. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/master/errorhandler.py +0 -0
  77. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/master/master.py +0 -0
  78. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/py.typed +0 -0
  79. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/__init__.py +0 -0
  80. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_clang.cmd +0 -0
  81. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_clang.sh +0 -0
  82. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_gcc.cmd +0 -0
  83. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_gcc.sh +0 -0
  84. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/build_gcc_arm.sh +0 -0
  85. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/converter/__init__.py +0 -0
  86. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/lz4.c +0 -0
  87. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/lz4.h +0 -0
  88. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/lz4hc.c +0 -0
  89. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/lz4hc.h +0 -0
  90. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/mio.hpp +0 -0
  91. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/reader.hpp +0 -0
  92. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/reco.py +0 -0
  93. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/recorder.rst +0 -0
  94. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/rekorder.cpp +0 -0
  95. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/rekorder.hpp +0 -0
  96. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/setup.py +0 -0
  97. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/test_reko.py +0 -0
  98. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/unfolder.hpp +0 -0
  99. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/wrap.cpp +0 -0
  100. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/recorder/writer.hpp +0 -0
  101. {pyxcp-0.22.12/pyxcp/stim → pyxcp-0.22.14/pyxcp/scripts}/__init__.py +0 -0
  102. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/pyxcp_probe_can_drivers.py +0 -0
  103. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_examples.py +0 -0
  104. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_fetch_a2l.py +0 -0
  105. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_id_scanner.py +0 -0
  106. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_info.py +0 -0
  107. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/scripts/xcp_profile.py +0 -0
  108. {pyxcp-0.22.12/pyxcp/vector → pyxcp-0.22.14/pyxcp/stim}/__init__.py +0 -0
  109. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_asam_types.py +0 -0
  110. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_binpacking.py +0 -0
  111. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_can.py +0 -0
  112. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_checksum.py +0 -0
  113. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_daq.py +0 -0
  114. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_frame_padding.py +0 -0
  115. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_master.py +0 -0
  116. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_transport.py +0 -0
  117. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/tests/test_utils.py +0 -0
  118. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/timing.py +0 -0
  119. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/__init__.py +0 -0
  120. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/base_transport.hpp +0 -0
  121. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/can.py +0 -0
  122. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/eth.py +0 -0
  123. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/sxi.py +0 -0
  124. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/transport_wrapper.cpp +0 -0
  125. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/transport/usb_transport.py +0 -0
  126. {pyxcp-0.22.12 → pyxcp-0.22.14}/pyxcp/types.py +0 -0
  127. {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(MSVC_BASE_OPTIONS "${MSVC_BASE_OPTIONS} -Og -g3 -ggdb --fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined -fsanitize=bounds") # -fsanitize=hwaddress
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(MSVC_BASE_OPTIONS "${MSVC_BASE_OPTIONS} -O3 --fomit-frame-pointer")
38
+ SET(GCC_N_CLANG_BASE_OPTIONS "${GCC_N_CLANG_BASE_OPTIONS} -O3 --fomit-frame-pointer")
39
39
  endif()
40
40
  endif ()
41
41
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyxcp
3
- Version: 0.22.12
3
+ Version: 0.22.14
4
4
  Summary: Universal Calibration Protocol for Python
5
5
  Home-page: https://github.com/christoph2/pyxcp
6
6
  License: LGPLv3
@@ -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 = ["--config Release", "--verbose"]
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.12"
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"]
@@ -17,4 +17,4 @@ tb_install(show_locals=True, max_frames=3) # Install custom exception handler.
17
17
 
18
18
  # if you update this manually, do not forget to update
19
19
  # .bumpversion.cfg and pyproject.toml.
20
- __version__ = "0.22.12"
20
+ __version__ = "0.22.14"
@@ -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, nullptr)
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]:
@@ -3,7 +3,7 @@
3
3
  """
4
4
  from typing import List, Optional
5
5
 
6
- from pyxcp.cpp_ext import Bin
6
+ from pyxcp.cpp_ext.cpp_ext import Bin
7
7
 
8
8
 
9
9
  def first_fit_decreasing(items, bin_size: int, initial_bin_size: Optional[int] = None) -> List[Bin]:
@@ -22,23 +22,23 @@ if XCP_LITE:
22
22
  False,
23
23
  False,
24
24
  [
25
- ("byteCounter", 0x203EA, 0, "U8"),
26
- ("wordCounter", 0x203EC, 0, "U16"),
27
- ("dwordCounter", 0x20410, 0, "U32"),
28
- ("sbyteCounter", 0x203EB, 0, "I8"),
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
- 0,
33
+ 7,
34
34
  False,
35
35
  False,
36
36
  [
37
- ("swordCounter", 0x20414, 0, "I16"),
38
- ("sdwordCounter", 0x20418, 0, "I32"),
39
- ("channel1", 0x203F8, 0, "F64"),
40
- ("channel2", 0x20400, 0, "F64"),
41
- ("channel3", 0x20408, 0, "F64"),
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
- # daq_parser = DaqToCsv(DAQ_LISTS) # Record to CSV file(s).
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(15.0 * 60.0) # Run for 15 minutes.
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 ..cpp_ext import Timestamp, TimestampType
10
- from ..recorder import XcpLogFileWriter
11
- from ..timing import Timing
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,
@@ -9,7 +9,7 @@ from time import perf_counter, sleep
9
9
  import chardet
10
10
  import pytz
11
11
 
12
- from pyxcp.cpp_ext import TimestampInfo
12
+ from pyxcp.cpp_ext.cpp_ext import TimestampInfo
13
13
 
14
14
 
15
15
  def hexDump(arr):
File without changes
@@ -1,8 +0,0 @@
1
- from .cpp_ext import ( # noqa: F401
2
- Bin,
3
- DaqList,
4
- McObject,
5
- Timestamp,
6
- TimestampInfo,
7
- TimestampType,
8
- )
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