Skip to main content

module to interface AR488 boards

Project description

package to interact with AR488 interface boards, adds a bit of abstraction to simplify interactions. also can be passed as an argument to custom classes to semplify instrument contorl in your code like :

from PyAR488.PyAR488 import AR488

class HP3468A:
def __init__(gpib_addrs:int, interface:AR488):

self.address = gpib_addrs self.interface = interface

def read_measurement(self):

self.interface.address(self.address) return self.interface.read()

my_awesome_interface = AR488(‘COM5’) # open the interface my_swesome_meter = HP3468A(22 , my_awesome_interface) # create the interument object

reading = my_awesome_meter.read_measurement() #read measurement print(reading)

NOTE : for custom instrument classes remember that the interface must be on the same address as the instrument to comunicate, maybe implement a custom function like:

class MyAwesomeInstrument:
def __init__(self, interface:AR488, address:int): #define instruemtn with interface and GPIB address

self.interface = interface self.address = address

def _read(messsage:str): # internal function that make sure the address has not been changed before the operation

self.interface.address(self.address): return self.interface.read(message)

This way you are shoure that the interface is always on the right address and the serial command to change is sent only if it is currently configured diferently (so no useless traffic on usb). all is handeled automaticaly in the PyAR488 module.

In case of trouble… enable the debung on object declaration to see printed each and every command sent to the interface and your instruments!

just use:

from PyAR488.PyAR488 import AR488 my_interface = AR488(‘COM5’, debug = True)

if you face any problen make sure to send an issue on GitHub or make a pull request with the fix! GitHub repo: https://github.com/Minu-IU3IRR/PyAR488

Project details


Release history Release notifications | RSS feed

This version

1.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyAR488-1.6.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

PyAR488-1.6-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file PyAR488-1.6.tar.gz.

File metadata

  • Download URL: PyAR488-1.6.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for PyAR488-1.6.tar.gz
Algorithm Hash digest
SHA256 193e27a4141610c07a75efc14a986bf5a831e97eab447c45b706f6efe14b78da
MD5 073ebb78fce2604cd96949dc44b38e6f
BLAKE2b-256 dda0c8066c42f580aa43a61d880d84041fe561f5ad06c663d4866133beb00957

See more details on using hashes here.

File details

Details for the file PyAR488-1.6-py3-none-any.whl.

File metadata

  • Download URL: PyAR488-1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for PyAR488-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 868c84a3b4a4d25586dbd114ccfbcd4c6135d33ee79d1831e20d81ac6f896b7c
MD5 f73699942dccf4cef937f3600fbad3f8
BLAKE2b-256 4b8d65bf861f8c552c57743109acb445ef96fdbbc87ca8e25754a4b9b075b873

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page