Skip to content

COO-Utilities/bonn_shutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bonn Shutter Control

Control and integration software for the Bonn shutter mechanism using Python, C, and C++.

This repository provides a multi-language control stack for operating a hardware shutter system, supporting integration into larger instrument or data acquisition workflows. The project is designed to combine:

  • Python for high-level simple testing and controls
  • C/C++ for low-level hardware communication and performance-critical control

Features

  • Hardware shutter command and control interface
  • Python tools for communication and simple integration
  • C/C++ backend components for device-level operation
  • Modular design intended for instrument control environments

Repository Structure

Typical components in this repository include:

  • bonn_shutter.py — Main Python shutter control module
  • python/ — Additional Python interfaces and utilities
  • cpp/ — Core C/C++ shutter control implementation
  • examples/ — Example usage and test programs

(Directory names may vary depending on development stage.)

Requirements

  • Python 3.8+
  • C/C++ compiler
  • Additional dependencies may be required depending on the target hardware interface

Python Base Class Dependency

The Python shutter controller is built using a shared hardware abstraction base class:

from hardware_device_base import HardwareMotionBase

Example Python Code

import bonn_shutter

# Initialize the controller
dev = bonn_shutter.BonnShutterController()

# Configure the connection (USB or RJ45/Ethernet)
# For USB:
dev.set_connection('usb') 

# For RJ45 (TCP/IP):
# dev.set_connection('rj45', host='192.168.200.200', port=10012)

# Establish connection and control the hardware
try:
    dev.connect()
    dev.open_shutter()
    dev.close_shutter()
finally:
    dev.disconnect()

About

Control and integration toolkit for the Bonn shutter system, built with Python, C, and C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages