Git Product home page Git Product logo

wmcontrol's Introduction

Tests code style License: GPL v3 Docker

wmControl

Wavemeter HighFinesse WS8 control via ethernet.

Creates a host which serves for every connected wavemeter. It uses SCPI for communication with the wavemeters.

import asyncio


request = "MEASURE:WAVELENGTH (@1,2)\n"  # SCPI-command
reader, writer = await asyncio.open_connection(interface, port)  # Interface and port of wavemeter server.
await writer.write(request.encode())
await writer.drain()

wave_1 = await reader.readline().decode().rstrip()
print("Wavelength channel 1: ", wave_1)
wave_2 = await reader.readline().decode().rstrip()
print("Wavelength channel 2: ", wave_2)

Installation instructions

Linux

python3 -m venv env  # Create a virtual environment for the build tools
pip install -r requirements.txt
pre-commit install

Windows

conda install pip
pip install -r requirements.txt
pre-commit install

To configure the host use a .env-file. Within it, a wavemeter is represented by a list of the version of the wavemeter, the IP-address or interface of the host and a port of the host. You can also use a .bat-file to automate the host.

An example for both is shown in the example dictionary.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the GPL v3 license - see the LICENSE file for details

wmcontrol's People

Contributors

cacigev avatar dependabot[bot] avatar patrickbaus avatar

Watchers

 avatar

wmcontrol's Issues

Rename parameters

Please rename to main parameter of the DataPackage subclasses "value". This makes duck typing a lot easier later.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.