Giter Site home page Giter Site logo

pyclawsps's Introduction

pyCLAWSps

python 3 script for the Hamamatsu c11204-01/02 power supply

Prerequisites

This module requires numpy and pySerial and will be installed automatically

Installation

Install this package by the following command on a console:

pip install pyCLAWSps

Compatibility

Tested with only python 3

Using the package

To use this code simply import module and initialise with commands. Make sure to connect power supply to the PC before initializing

>>> from pyCLAWSps import CLAWSps
>>> ps = CLAWSps()
>>> ps.printStatus()

Functions

  • printMonitorInfo() - Prints information on the power supply status, voltage (V) and current (mA) values
  • getPowerInfo() - Returns the power supply voltage (V) and current (mA) values as tuple
  • setHVOff() - Set power supply High Voltage OFF
  • setHVOn() - Set power supply High Voltage ON
  • reset() - Reset the power supply
  • setVoltage(voltage_dec) - Sets the high voltage output to the voltage specified (V)
  • getVoltage() - Returns power supply voltage in Volts
  • getCurrent() - Returns power supply current in mA
  • printStatus() - Prints status information on the power supply (similar to 'getMonitorInfo()') but without voltage and current values
  • close() - Close serial port

NOTE - The applied voltage can be set upto 90 V by c11204 power supply. Change the upper voltage limit (self.V_lim_upper in pyCLAWSps/__init__) as required by the MPPC in use. Default is set to 60 V

pyclawsps's People

Contributors

malindasds avatar uwebonnes 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.