GithubHelp home page GithubHelp logo

flueke / mvme Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 6.0 34.58 MB

mvme - mesytec VME data acquisition

License: GNU General Public License v3.0

CMake 0.99% NSIS 0.54% Python 0.46% Makefile 0.07% C++ 95.78% Shell 0.06% TeX 0.21% C 1.01% HTML 0.87% Batchfile 0.01% Dockerfile 0.02%

mvme's People

Contributors

arashpartow avatar flueke avatar inkdot7 avatar wvonseeg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mvme's Issues

Autogenerated python code from analysis export deprecated

The autogenerated python code for sparse events in python_sparse_event.py.mustache is using deprecated Python 2.7 functionality. The Itertools.izip() functionality has been moved to the built-in zip() function. The string formatting should use f-strings as well.

VME Bus Error: No DTACK on write

Hello, I am testing an MADC-32 module using the wiener vme usb controller. I followed the quick start guidance on mvme's manual. But I got the following error:

13:32:05: Initializing Modules:
13:32:05:   event0.madc32
13:32:05:     Module Reset
13:32:05:       Error from "write a32 (amod=0x09) d16 0x00126008 0x00000001": VME Bus Error: No DTACK on write
13:32:05: 
13:32:05: VME Init Startup Errors:
13:32:05:   Error from 'write a32 (amod=0x09) d16 0x00126008 0x00000001': VME Bus Error: No DTACK on write

I'm sure I set the address correctly (on the module's PCB, the address code is 0012).

problem compiling on ubuntu 20.04

Dear Florian,
On an up-to-date Ubuntu 20.04 with the latest version of dev branch I got the following error when trying to compile. Can you help me please?
Cheers
John

[ 96%] Linking CXX executable ../dev_data_filter_edit
[ 96%] Linking CXX executable ../dev_sis3153_read_raw_buffers_file
/usr/bin/ld: ../libmvme_core.so: undefined reference to `mesytec::mvme_mvlc::MVLC_VMEController::vmeMBLTSwapped(unsigned int, unsigned short, QVector<unsigned int>*)'
/usr/bin/ld: ../libmvme_core.so: undefined reference to `mesytec::mvme_mvlc::MVLC_VMEController::staticMetaObject'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/vme_script_checker.dir/build.make:112: vme_script_checker] Error 1
make[1]: *** [CMakeFiles/Makefile2:3026: src/CMakeFiles/vme_script_checker.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Here are the exact steps I did:

git clone https://github.com/flueke/mvme.git
cd mvme && git checkout dev
git modules init && git modules update
cd .. && mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ../mvme
make -j8

The output of cmake is below.

`-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- GIT_VERSION=1.0.1-324-g95c82119
-- GIT_VERSION_SHORT=1.0.1-324
-- GIT_VERSION_TAG=1.0.1
-- GIT_BRANCH=dev
-- GIT_VERSION=0.0.0-264-gf527993
-- GIT_VERSION_SHORT=0.0.0-264
-- GIT_VERSION_TAG=0.0.0
-- GIT_BRANCH=dev
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Using CMake version 3.16.3
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Using ZLIB 1.2.11
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- Looking for fseeko
-- Looking for fseeko - found
-- Performing Test Iconv_IS_BUILT_IN
-- Performing Test Iconv_IS_BUILT_IN - Success
-- Using Iconv
-- Signing not supported when encryption is disabled
-- The following features have been enabled:

  • MZ_ZLIB, Enables ZLIB compression

-- The following features have been disabled:

  • MZ_COMPAT, Enables compatibility layer
  • MZ_BZIP2, Enables BZIP2 compression
  • MZ_LZMA, Enables LZMA compression
  • MZ_PKCRYPT, Enables PKWARE traditional encryption
  • MZ_WZAES, Enables WinZIP AES encryption
  • MZ_LIBCOMP, Enables Apple compression
  • MZ_OPENSSL, Enables OpenSSL for encryption
  • MZ_BRG, Enables Brian Gladman's encryption library
  • MZ_SIGNING, Enables zip signing support
  • MZ_COMPRESS_ONLY, Only support compression
  • MZ_DECOMPRESS_ONLY, Only support decompression
  • MZ_BUILD_TEST, Builds minizip test executable
  • MZ_BUILD_UNIT_TEST, Builds minizip unit test project
  • MZ_BUILD_FUZZ_TEST, Builds minizip fuzzer executables
  • MZ_CODE_COVERAGE, Builds with code coverage flags

-- Performing Test CFLAG_Wall
-- Performing Test CFLAG_Wall - Success
-- Performing Test CFLAG_Wextra
-- Performing Test CFLAG_Wextra - Success
-- Performing Test CFLAG_Wundef
-- Performing Test CFLAG_Wundef - Success
-- Performing Test CFLAG_Wcast_qual
-- Performing Test CFLAG_Wcast_qual - Success
-- Performing Test CFLAG_Wcast_align
-- Performing Test CFLAG_Wcast_align - Success
-- Performing Test CFLAG_Wshadow
-- Performing Test CFLAG_Wshadow - Success
-- Performing Test CFLAG_Wswitch_enum
-- Performing Test CFLAG_Wswitch_enum - Success
-- Performing Test CFLAG_Wdeclaration_after_statement
-- Performing Test CFLAG_Wdeclaration_after_statement - Success
-- Performing Test CFLAG_Wstrict_prototypes
-- Performing Test CFLAG_Wstrict_prototypes - Success
-- Performing Test CFLAG_Wpointer_arith
-- Performing Test CFLAG_Wpointer_arith - Success
-- Performing Test CFLAG_W4
-- Performing Test CFLAG_W4 - Failed
-- Version: 6.2.1
-- Build type: Release
-- CXX_STANDARD: 14
-- Performing Test has_std_14_flag
-- Performing Test has_std_14_flag - Success
-- Performing Test has_std_1y_flag
-- Performing Test has_std_1y_flag - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Performing Test FMT_HAS_VARIANT
-- Performing Test FMT_HAS_VARIANT - Success
-- Required features: cxx_variadic_templates
-- Looking for strtod_l
-- Looking for strtod_l - not found
-- Build spdlog: 1.7.0
-- Build type: Release
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Using QUAZIP_INCLUDE_DIR=/usr/include/quazip
-- Using QUAZIP_QT5=/usr/lib/x86_64-linux-gnu/libquazip5.so
-- Using QWT_INCLUDE_DIR=/usr/include/qwt
-- Using QWT_LIBRARY=/usr/lib/libqwt-qt5.so
-- Using LIBUSB_LIBRARY=/usr/lib/x86_64-linux-gnu/libusb.so
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0")
-- Found boost for mvme in /usr/include
-- Found boost for liba2 in /usr/include
-- Found zlib for liba2 in /usr/include
-- CMAKE_BUILD_TYPE=Release
-- CMAKE_CXX_FLAGS=
-- CMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG
-- Configuring done
-- Generating done
`

issue compiling on macOS big sur (11.3) [repost]

I understand that mvme may not be optimized for macOS but I was wondering if it would be possible to fix this issue. It could possibly be an issue on my end, I've never compiled a program like this from scratch. Following the instructions on your README, I run

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/local/mvme.../mvme

in the directory that contains the mvme build files and then

make -j6

which works up until

[ 26%] Built target jcon
[ 27%] Building CXX object external/mesytec-mvlc/src/mesytec-mvlc/CMakeFiles/mesytec-mvlc.dir/mvlc_factory.cc.o
[ 28%] Built target liba2_static
[ 28%] Building CXX object external/mesytec-mvlc/src/mesytec-mvlc/CMakeFiles/mesytec-mvlc.dir/mvlc_impl_eth.cc.o
[ 28%] Building CXX object external/mesytec-mvlc/src/mesytec-mvlc/CMakeFiles/mesytec-mvlc.dir/mvlc_impl_support.cc.o
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog_util.cc:1:
/Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog_util.h:240:26: error: implicit instantiation of undefined template 'std::__1::array<unsigned int, 7>'
    for (u32 triggerVal: triggerValues)
                         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog_util.cc:1:
/Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog_util.h:261:48: error: implicit instantiation of undefined template 'std::__1::array<unsigned int, 7>'
    std::array<u32, stacks::ReadoutStackCount> triggerValues;
                                               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog_util.cc:1:
/Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog_util.h:263:20: error: no matching function for call to 'begin'
    std::transform(std::begin(triggers), std::end(triggers), std::begin(triggerValues),
                   ^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/initializer_list:99:1: note: candidate template ignored: could not match 'initializer_list' against 'array'
begin(initializer_list<_Ep> __il) _NOEXCEPT
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/iterator:1772:1: note: candidate template ignored: could not match '_Tp [_Np]' against 'const std::array<StackTrigger, stacks::ReadoutStackCount>'
begin(_Tp (&__array)[_Np])
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/iterator:1790:1: note: candidate template ignored: substitution failure [with _Cp = const std::__1::array<mesytec::mvlc::StackTrigger, 7>]: implicit instantiation of undefined template 'std::__1::array<mesytec::mvlc::StackTrigger, 7>'
begin(_Cp& __c) -> decltype(__c.begin())
^                              ~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/iterator:1798:1: note: candidate template ignored: substitution failure [with _Cp = std::__1::array<mesytec::mvlc::StackTrigger, 7>]: implicit instantiation of undefined template 'std::__1::array<mesytec::mvlc::StackTrigger, 7>'
begin(const _Cp& __c) -> decltype(__c.begin())
^                                    ~
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog_util.cc:1:
/Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog_util.h:263:42: error: no matching function for call to 'end'
    std::transform(std::begin(triggers), std::end(triggers), std::begin(triggerValues),
                                         ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/initializer_list:108:1: note: candidate template ignored: could not match 'initializer_list' against 'array'
end(initializer_list<_Ep> __il) _NOEXCEPT
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/iterator:1780:1: note: candidate template ignored: could not match '_Tp [_Np]' against 'const std::array<StackTrigger, stacks::ReadoutStackCount>'
end(_Tp (&__array)[_Np])
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/iterator:1806:1: note: candidate template ignored: substitution failure [with _Cp = const std::__1::array<mesytec::mvlc::StackTrigger, 7>]: implicit instantiation of undefined template 'std::__1::array<mesytec::mvlc::StackTrigger, 7>'
end(_Cp& __c) -> decltype(__c.end())
^                            ~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/iterator:1814:1: note: candidate template ignored: substitution failure [with _Cp = std::__1::array<mesytec::mvlc::StackTrigger, 7>]: implicit instantiation of undefined template 'std::__1::array<mesytec::mvlc::StackTrigger, 7>'
end(const _Cp& __c) -> decltype(__c.end())
^                                  ~
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog.cc:21:
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_dialog.h:33:
/Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/../mesytec-mvlc/mvlc_stack_errors.h:79:53: error: implicit instantiation of undefined template 'std::__1::array<std::__1::unordered_map<mesytec::mvlc::StackErrorInfo, unsigned long>, 8>'
    std::array<ErrorInfoCounts, stacks::StackCount> stackErrors;
                                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc.cc:29:
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc.h:40:
/Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_stack_errors.h:79:53: error: implicit instantiation of undefined template 'std::__1::array<std::__1::unordered_map<mesytec::mvlc::StackErrorInfo, unsigned long>, 8>'
    std::array<ErrorInfoCounts, stacks::StackCount> stackErrors;
                                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_factory.cc:28:
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_factory.h:32:
In file included from /Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/../mesytec-mvlc/mvlc.h:40:
/Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_stack_errors.h:79:53: error: implicit instantiation of undefined template 'std::__1::array<std::__1::unordered_map<mesytec::mvlc::StackErrorInfo, unsigned long>, 8>'
    std::array<ErrorInfoCounts, stacks::StackCount> stackErrors;
                                                    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
4 errors generated.
make[2]: *** [external/mesytec-mvlc/src/mesytec-mvlc/CMakeFiles/mesytec-mvlc.dir/mvlc_dialog_util.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [external/mesytec-mvlc/src/mesytec-mvlc/CMakeFiles/mesytec-mvlc.dir/mvlc.cc.o] Error 1
/Users/jacksonlawrence/mvme/mvme-master/external/mesytec-mvlc/src/mesytec-mvlc/mvlc_impl_eth.cc:16:14: fatal error: 'sys/prctl.h' file not found
    #include <sys/prctl.h>
             ^~~~~~~~~~~~~
1 error generated.
make[2]: *** [external/mesytec-mvlc/src/mesytec-mvlc/CMakeFiles/mesytec-mvlc.dir/mvlc_dialog.cc.o] Error 1
1 error generated.
make[2]: *** [external/mesytec-mvlc/src/mesytec-mvlc/CMakeFiles/mesytec-mvlc.dir/mvlc_factory.cc.o] Error 1
1 error generated.
make[2]: *** [external/mesytec-mvlc/src/mesytec-mvlc/CMakeFiles/mesytec-mvlc.dir/mvlc_impl_eth.cc.o] Error 1
make[1]: *** [external/mesytec-mvlc/src/mesytec-mvlc/CMakeFiles/mesytec-mvlc.dir/all] Error 2
make: *** [all] Error 2

Thanks in advance for any help!

Issue while pulling submodules

Hello,

While trying to compile mvme software(main branch), we faced the issue in pulling the submodules while following the instructions.
Bellow is the error namely on qgv :

git submodule update --init
Submodule 'external/mesytec-mvlc' (https://github.com/flueke/mesytec-mvlc.git) registered for path 'external/mesytec-mvlc'
Submodule 'external/qgv' (https://github.com/flueke/qgv.git) registered for path 'external/qgv'
Cloning into '/home/pista/Softs/mvme_org/mvme/external/mesytec-mvlc'...
Cloning into '/home/pista/Softs/mvme_org/mvme/external/qgv'...
fatal: remote error: upload-pack: not our ref ff40091a65f5b514a8cd9d9c6ce58ee57f32f34f
fatal: Fetched in submodule path 'external/mesytec-mvlc', but it did not contain ff40091a65f5b514a8cd9d9c6ce58ee57f32f34f. Direct fetching of that commit failed.
fatal:

Can you help us ?
With best regards,
Antoine (and John F @ganil !)

Problem with file export sink erasing output files

Hi Florian,

I am having an issue on mvme 1.10.3, running on Ubuntu 23.10.

I am replaying list files through the analysis with a file export sink using the listfile browser. I replay the listfile just fine and can see the compressed output file in my exports folder, but when I double-click on another file to run through the analysis, the output file that I just created is empty and reads as 0 bytes in the filesystem. I have managed to save the file from being deleted only by closing mvme or by copying the file out of the export folder before opening a new listfile. Closing the listfile or selecting another listfile erases the output file. I am using the Indexed/Sparse format with zlib compression if that helps.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.