Scaler SIS 3820

This repository contains the "default" Midas frontend for the Struck SIS3820 VME multiscaler. This is a measurement card which can register electric signals in the 100 MHz range, see https://www.struck.de/sis3820.htm.

Requirements

Requires a Midas installation with the environment variable MIDASSYS pointing to the built Midas artifacts and headers.

Build

Clone this repository, enter the cloned directory, and then build via CMake.

cmake -S "$(pwd)" -B <directory-to-build-in> -DBUILD_FRONTEND=ON
cmake --build <directory-to-build-in> --clean-first -- -j8

Run

/build/driver/scaler_sis3820_fe -e flame

Including in Custom Frontend

To include this driver in a custom frontend, you should ensure the environment variable MIDASSYS points to your system install and include a snippet in your CMakeLists.txt similar to the following:

# If the path to the scaler_sis3820 repository is outside of the frontend
# repository, you also need to provide a location for the scaler_sis3820
# artifacts as a second argument to `add_subdirectory`
# e.g. `./device/scaler_sis3820`
add_subdirectory(
    <path-to-scaler_sis3820-repository>
)

add_executable(
  <frontend-name>
  <frontend-code-path-1>
  <frontend-code-path-2>
  :
)

set_property(
  TARGET
    <frontend-name>
  PROPERTY
    CXX_STANDARD 11
)

target_include_directories(
  <frontend-name>
  PRIVATE
    $ENV{MIDASSYS}/drivers
    $ENV{MIDASSYS}/include
)

target_link_libraries(
  <frontend-name>
  scaler_sis3820
  <additional-library-1>
  <additional-library-2>
  :
)
S
Description
Default frontend for Struck SIS3820 VME multiscaler
Readme 146 KiB
Languages
C++ 59.6%
C 34.3%
CMake 6.1%