Setup, control and acquire data from the Genesis Highspeed systems via python.
Project description
GEN DAQ API - Python Driver
Setup, control and acquire data from the Genesis Highspeed systems via python.
The GEN DAQ API can be used to control the HBM GEN Series tethered mainframes.
Requirements
Python 3.10+
Installation
Use the package manager pip to install GEN DAQ API - Python Driver package.
pip install ghs-gendaqapi-py
Usage
Refer examples for detailed use cases. Refer documentation for detailed API documentation
from ghsapi import ghsapi
# create Gen Daq API's object
gen = ghsapi.GHS()
# connect to mainframe
gen.ghs_connect(IP_ADDRESS, PORT_NO)
# disconnect from mainframe
gen.ghs_disconnect()
Development environment setup
Below are the steps to follow to setup devlopement enviroment for system integration and testing.
Requirements
Python 3.10+
Anaconda/Miniconda
Clone repo
git clone https://github.com/hbk-world/ghs-gendaqapi-python.git
Virtual Environment
conda create --name <env> --file spec-file.txt
Install dependencies
pip install -r requirements.txt
Run example files
Edit files in examples to enter mainframe IP and Port number
python examples\FILENAME
Testing
Edit files in functionaltest to enter mainframe IP and Port number
Unit test
python unittest\FILENAME
Functional test
python functionaltest\FILENAME
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ghs_gendaqapi_py-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d936ce5f0219c3d8d68b1d9da7c6098e535ab2be6e75b89bc9b9c57d4a3e30 |
|
MD5 | f3e61a146133cd9a59b6f138d6198e5e |
|
BLAKE2b-256 | ae15d92e33af0cb1818b43b0455a6ba7a304968a8559b3c1b755d482589038b9 |