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.1.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.1-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gsv86lib-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ecbb73a058cc07585461028b465d942be6a8ea20efd35d15094e7bd6d43ae34b
MD5 6342b4c746b1e0f60524753894e31ed6
BLAKE2b-256 4a9cd4419a113fdfe5a506bf7f12c485cd5fa8a13381cdd0faa15e2e003737b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gsv86lib-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67152d8e782f5219bc78972fd50bf514f8b38c9931f90ca874eb12b329018ba8
MD5 58adb0838129a90d52844e658e8174db
BLAKE2b-256 8170132bc4477a898a2632c823ad23bb3e51a5a19d06fac95712f4ce971faa3b

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