Skip to main content

Python library for ME-Systeme GSV-8 and GSV-6 (wrapped from gsv8pypi_python3)

Project description

gsv86lib

gsv86lib is a Python package that provides a convenient interface to the
ME-Systeme GSV-8 measurement amplifier via serial communication.

It is based on the original ME-Systeme Python library (gsv8pypi_python3) and repackages it as a modern Python package with a proper module namespace and relative imports, so it can be installed and reused across multiple projects.

Typical use cases:

  • Reading strain gauge data from a GSV-8
  • Continuous streaming with StartTransmission()
  • Triggering digital I/O based on thresholds
  • Building custom GUIs or data logging tools

Features

  • Pure Python, no platform-specific DLLs required
  • Serial communication (USB-CDC, virtual COM port)
  • Access to the full GSV-8 feature set:
    • Measurement values for up to 8 channels
    • Data rate configuration
    • Start/Stop transmission
    • Digital I/O configuration
    • Thresholds and trigger functions
    • CSV recording helpers (from original library)
  • Usable on Windows and Linux

Installation

gsv86lib is not published on PyPI.
Install it directly from the Git repository:

pip install git+https://github.com/me-systeme/gsv86lib.git

Requirements

  • Python 3.8+
  • pyserial (installed automatically as dependency)

Basic Usage

import time
from gsv86lib import gsv86

# Open GSV-8 device on given serial port
# Example: "COM5" on Windows, "/dev/ttyACM0" on Linux
dev = gsv86("COM3", 115200)

# Optional: configure data rate (Hz)
dev.writeDataRate(50.0)

# Start continuous transmission
dev.StartTransmission()

time.sleep(0.2)

# Read a single measurement frame
measurement = dev.ReadValue()

# Access individual channels (1..8)
ch1 = measurement.getChannel1()
ch2 = measurement.getChannel2()

print("Channel 1:", ch1)
print("Channel 2:", ch2)

# Stop transmission when done
dev.StopTransmission()

You can build more complex applications on top of this, such as real-time visualization, logging, or integration into test benches.

API Overview

gsv86lib exposes the original ME-Systeme API, including (non-exhaustive):

  • Measurement
    • ReadValue()
    • ReadMultiple()
    • writeDataRate(frequency)
    • StartTransmission()
    • StopTransmission()
  • Digital I/O
    • getDIOdirection(), setDIOdirection()
    • getDIOlevel(), setDIOlevel()
    • setDIOtype(), setInputToTaraInputForChannel(), …
  • Thresholds / Trigger
    • readDIOthreshold(), writeDIOthreshold()
    • setOutputHighByThreshold(), setOutputHighIfInsideWindow(), …
  • Scaling and sensor configuration
    • setUserScaleBySensor()
    • Input type configuration (bridge, single-ended, temperature, …)

For a more detailed API reference, see the original ME-Systeme documentation (e.g. gsv86.html / GSV-8PyPi 1.0.0 documentation or documentation.pdf) or the docstrings in the source files.

Project Structure

Typical layout of this package:

gsv86lib/
├─ pyproject.toml
├─ README.md
├─ LICENSE
└─ src/
   └─ gsv86lib/
      ├─ __init__.py
      ├─ gsv86.py
      ├─ CSVwriter.py
      ├─ GSV_BasicMeasurement.py
      ├─ GSV_Exceptions.py
      ├─ GSV6_AnfrageCodes.py
      ├─ GSV6_BasicFrameType.py
      ├─ GSV6_ErrorCodes.py
      ├─ GSV6_FrameRouter.py
      ├─ GSV6_MessFrameHandler.py
      ├─ GSV6_Protocol.py
      ├─ GSV6_SeriallLib.py
      ├─ GSV6_UnitCodes.py
      └─ ThreadSafeVar.py

The public entry point for user code is gsv86lib.gsv86.

License

This package is derived from the original ME-Systeme GSV-8 Python library. Please refer to the license information provided by ME-Systeme and add your own license information here as appropriate for your project.

Project details


Download files

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

Source Distribution

gsv86lib-0.1.0.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gsv86lib-0.1.0-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

Details for the file gsv86lib-0.1.0.tar.gz.

File metadata

  • Download URL: gsv86lib-0.1.0.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for gsv86lib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d1a110d5216157c1499ebdb6108db5528d64a025799d4e325f6526c7e787e0c
MD5 4371be19af7aae3e83660829026c2948
BLAKE2b-256 4587f55b8f4d3d178ce57aabd8a27d8ae17f864b15bdeabb00dc19547c2072c6

See more details on using hashes here.

File details

Details for the file gsv86lib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gsv86lib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for gsv86lib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c63515dbbeeb4928bd3ea4072a076aa0428941353666f4fe73c8f115dedb90f
MD5 122d9e3f0c36afa126a8eba7f8c9f10c
BLAKE2b-256 c3ebfd6ba3e1a511ed7df10d74d9a5878a48dafa79de00b96e6a14c9b6089df4

See more details on using hashes here.

Supported by

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