AIM TTi PLH250-P DC Power Supply

This repository contains the driver code and "default" Midas frontend for the Thurlby Thandar Instruments precision linear power supply PLH250-P . The manual can be found here: https://i.psi.ch/8KW .

Power limit

This frontend was written as an on the fly solution during operation, specifically to operate the FLAME sorb heater independently of the Lakeshore. To ensure operational safety for this application power is limited to 350mW.

If necessary for other applications, that value could be overwritten in the future within cmake when building the driver:

set(PLH250P_POWER_LIMIT_W "0.35" CACHE STRING "Power limit in Watt for PLH250-P driver")
target_compile_definitions(TTi_PLH250P PRIVATE PLH250P_POWER_LIMIT_W=${PLH250P_POWER_LIMIT_W}f)

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/TTi_PLH250P_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 TTi_PLH250P repository is outside of the frontend
# repository, you also need to provide a location for the TTi_PLH250P
# artifacts as a second argument to `add_subdirectory`
# e.g. `./device/TTi_PLH250P`
add_subdirectory(
    <path-to-TTi_PLH250P-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>
  TTi_PLH250P
  <additional-library-1>
  <additional-library-2>
  :
)
S
Description
Power limited midas driver for the Thurlby Thandar Instruments precision linear power supply PLH250-P
Readme
48 KiB
Languages
C++ 88.3%
CMake 8.4%
C 3.3%