All Projects → nelsond → prologix-gpib-ethernet

nelsond / prologix-gpib-ethernet

Licence: MIT license
Simple wrapper for the Prologix GPIB-to-Ethernet adapter.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to prologix-gpib-ethernet

Introduction To Computer Systems
Course : Introduction to Computer Systems
Stars: ✭ 162 (+710%)
Mutual labels:  lab
docker-java
Intro Level Lab for Docker Development for Java Developers
Stars: ✭ 34 (+70%)
Mutual labels:  lab
HPC
A collection of various resources, examples, and executables for the general NREL HPC user community's benefit. Use the following website for accessing documentation.
Stars: ✭ 64 (+220%)
Mutual labels:  lab
Openshiftv3 Workshop
OpenShift v3 Workshops by the OpenShift Tiger Team
Stars: ✭ 179 (+795%)
Mutual labels:  lab
Lab
The Uberlab provides various tutorials - written by you! - on how to run software and tools on Uberspace 7.
Stars: ✭ 231 (+1055%)
Mutual labels:  lab
andColorPicker
Color picker library for Android
Stars: ✭ 233 (+1065%)
Mutual labels:  lab
Neu Os
Based on linux0.11, break it down, then reassemble (For NEU Lab use)
Stars: ✭ 143 (+615%)
Mutual labels:  lab
Jamf-Nation-Roadshow-London-2018
No description or website provided.
Stars: ✭ 16 (-20%)
Mutual labels:  lab
Apijam
GitHub repo for API Jam Workshop
Stars: ✭ 254 (+1170%)
Mutual labels:  lab
pjbank-js-sdk
PJBank SDK para Javascript! ⚡ ⚡ ⚡
Stars: ✭ 24 (+20%)
Mutual labels:  lab
Adaz
🔧 Automatically deploy customizable Active Directory labs in Azure
Stars: ✭ 197 (+885%)
Mutual labels:  lab
Awesome Cs
👨‍💻 ❤️ 💻 上海交通大学计算机系本科作业参考
Stars: ✭ 205 (+925%)
Mutual labels:  lab
BlueTeam.Lab
Blue Team detection lab created with Terraform and Ansible in Azure.
Stars: ✭ 82 (+310%)
Mutual labels:  lab
Rl Baselines3 Zoo
A collection of pre-trained RL agents using Stable Baselines3, training and hyperparameter optimization included.
Stars: ✭ 161 (+705%)
Mutual labels:  lab
SoftUni-Software-Engineering
SoftUni- Software Engineering
Stars: ✭ 47 (+135%)
Mutual labels:  lab
Colourful
🎨 Open source .NET library for working with color spaces.
Stars: ✭ 161 (+705%)
Mutual labels:  lab
awesome-mobile-robotics
Useful links of different content related to AI, Computer Vision, and Robotics.
Stars: ✭ 243 (+1115%)
Mutual labels:  lab
amqv7-workshop
No description or website provided.
Stars: ✭ 22 (+10%)
Mutual labels:  lab
MAD
Mobile Application Development
Stars: ✭ 49 (+145%)
Mutual labels:  lab
ichiColor
Full features javascript color parser module, perfect work with vue.js; support RGB, HSL, HSV/HSB, HSL255, HSL240, HWB, XYZ, LAB, LUV, LHCab, xyY...
Stars: ✭ 23 (+15%)
Mutual labels:  lab

Prologix GPIB-to-Ethernet Python wrapper Build Status Build status

Simple wrapper for the Prologix GPIB-to-Ethernet adapter. Also includes a simple device wrapper class.

Currently only supports the CONTROLLER mode of the Prologix GPIB-to-Ethernet adapter.

Requirements

Make sure you can reach/ping the adapter before you start using this library.

Install

Install with pip

pip install git+git://github.com/nelsond/prologix-gpib-ethernet.git

Example usage

Using the adapter directly

from plx_gpib_ethernet import PrologixGPIBEthernet

gpib = PrologixGPIBEthernet('192.168.1.14')

# open connection to Prologix GPIB-to-Ethernet adapter
gpib.connect()

# select gpib device at address 10
gpib.select(10)

# send a query
gpib.query('*IDN?')
# => 'Stanford_Research_Systems,SR760,s/n41456,ver139\n'

# write without reading
gpib.write('*RST')

# close connection
gpib.close()

Using the device wrapper

Also see examples/.

from plx_gpib_ethernet import PrologixGPIBEthernetDevice

class ExampleDevice(PrologixGPIBEthernetDevice):
  def start(self):
    self.write('STRT')

  def get_span(self):
    return float( self.query('SPAN?') )

my_device = ExampleDevice(host='192.168.1.14', address=10)

# open connection
my_device.connect()

# run predefined commands
my_device.idn()
# => 'Stanford_Research_Systems,SR760,s/n41456,ver139\n'
my_device.reset()

# run custom commands
my_device.start()
my_device.get_span() # => 0.191

# close connection
mydevice.close()

Development

Install requirements for development environment

$ pip install -r requirements/dev.txt

Run tests

$ py.test tests/

Generate coverage report

$ py.test --cov=plx_gpib_ethernet tests/

License

MIT License, see file LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].