Pfeiffer RVC300 Pressure Controller
This repository contains the driver code and "default" Midas frontend for the Pfeiffer RVC 300 Pressure Controller.
Manual
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>
cmake --build <directory-to-build-in> --clean-first -- -j8
Including in a larger CMake Project
Default Frontend
To use the default frontend contained within the frontend
directory from within a larger CMake project, you should ensure that 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 pfeiffer_rvc300 repository is outside of the frontend
# repository, you also need to provide a location for the pfeiffer_rvc300
# artifacts as a second argument to `add_subdirectory`
# e.g. `./device/pfeiffer_rvc300`
add_subdirectory(
<path-to-pfeiffer_rvc300-repository>
)
default_rvc300_frontend(
He4_Flow_scfe # Target Name
He4_Flow # Frontend Name
14 # Event ID
)
Custom Frontend
To use this driver within a custom frontend, ensure the environment
variable MIDASSYS points to your system install. Then include this
repository within the parent CMakeLists.txt and build your target
against the pfeiffer_rvc300 library:
# If the path to the pfeiffer_rvc300 repository is outside of the frontend
# repository, you also need to provide a location for the pfeiffer_rvc300
# artifacts as a second argument to `add_subdirectory`
# e.g. `./device/pfeiffer_rvc300`
add_subdirectory(
<path-to-pfeiffer_rvc300-repository>
)
add_executable(
<custom-frontend-target-name>
:
:
)
target_link_libraries(
<custom-frontend-target-name>
PRIVATE
pfeiffer_rvc300 # The library built by this repository
:
)
Test Frontend
Clone this repository, enter the cloned directory, and then build via CMake
ensuring that the BUILD_TEST_FRONTEND variable is defined.
cmake -S "$(pwd)" -B <directory-to-build-in> -DBUILD_TEST_FRONTEND=ON
cmake --build <directory-to-build-in> --clean-first -- -j8
This will create an executable within the directory
<directory-to-build-in>/pfeiffer_rvc300_fe which you can run via
<directory-to-build-in>/pfeiffer_rvc300_fe -e <instrument-name>