Coder Social home page Coder Social logo

lakeshorepy's Introduction

LakeshorePy

LakeshorePy is a lightweight Python package for interfacing with and acquiring data from Lakeshore temperature monitors. It uses pyVISA to communicate with the instruments and provides a simple and cookie-cutter structure that can be extended for future models.

For questions or feature requests, please contact [email protected]. As an independent researcher, I built this project purely for the joy of creating something both enjoyable and practical. If you love to tinker and build innovative control systems, feel free to email me!

Table of Contents

Installation

  1. Clone the LakeshorePy repository to your local machine.
  2. Create a virtual environment for the project: python3 -m venv env
  3. Activate the virtual environment: source env/bin/activate
  4. Install the required libraries: pip install -r requirements.txt

Usage

To use LakeshorePy, follow these steps:

  1. Connect your Lakeshore device to your computer via GPIB or Ethernet.
  2. Import the desired Lakeshore module: from lakeshore_218 import Lakeshore218
  3. Initialize a new instance of the class: ls = Lakeshore218("GPIB0::1::INSTR")
  4. Connect to the device: ls.connect()
  5. Configure the measurement: ls.configure_measurement()
  6. Acquire the desired measurement: temperature = ls.get_temperature()
  7. Disconnect from the device: ls.disconnect()

Classes and Methods

Lakeshore 218

The Lakeshore218 class includes the following methods:

  • __init__(self, address) - Initializes the Lakeshore 218 instance.
  • connect(self) - Connects to the Lakeshore 218 device.
  • disconnect(self) - Disconnects from the Lakeshore 218 device.
  • configure_measurement(self) - Configures the Lakeshore 218 for temperature measurement.
  • get_temperature(self) - Acquires the temperature measurement from the Lakeshore 218.

Lakeshore 224

The Lakeshore224 class includes the following methods:

  • __init__(self, address) - Initializes the Lakeshore 224 instance.
  • connect(self) - Connects to the Lakeshore 224 device.
  • disconnect(self) - Disconnects from the Lakeshore 224 device.
  • configure_measurement(self, channel) - Configures the Lakeshore 224 for temperature measurement.
  • get_temperature(self, channel) - Acquires the temperature measurement from the Lakeshore 224.

Lakeshore 336

The Lakeshore336 class includes the following methods:

  • __init__(self, address) - Initializes the Lakeshore 336 instance.
  • connect(self) - Connects to the Lakeshore 336 device.
  • disconnect(self) - Disconnects from the Lakeshore 336 device.
  • set_input(self, input_number, sensor_type) - Configures the input sensor type on the Lakeshore 336.
  • get_input(self, input_number) - Acquires the temperature measurement from the specified input on the Lakeshore 336.

Contributing

Contributions to LakeshorePy are welcome! If you find a bug or have a suggestion for a new feature, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

lakeshorepy's People

Contributors

tachikoma000 avatar

Watchers

 avatar

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.