Skip to content

COO-Utilities/ozoptics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ozoptics_software

Low-level python modules for operating OZ Optics attenuators

Currently Supported Models

  • DD-100-MC (RS232)
  • DD-600-MC (RS232)

Features

  • Connect to OZ Optics attenuators over serial through a terminal server
  • Query attenuator state and parameters
  • Command full range of attenuation values

Requirements

Installation

pip install .

Usage

import dd100mc

controller = dd100mc.OZController()
controller.connect(host='192.168.29.153', port=10003)

controller.set_attenuation(36.5)
print(controller.get_attenuation())
controller.set_position(5750)
print(controller.get_position())

# For a comprehensive list of classes and methods, use the help function
help(dd100mc)

🧪 Testing

Unit tests are located in tests/ directory.

To run all tests from the project root:

python -m pytest

About

Low level library for OZ Optics attenuators

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages