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.
Python 3.10+
Use the package manager pip to install GEN DAQ API - Python Driver package.
pip install ghs-gendaqapi-pyRefer 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()Below are the steps to follow to setup devlopement enviroment for system integration and testing.
Python 3.10+Anaconda/Miniconda
git clone https://github.com/hbk-world/ghs-gendaqapi-python.gitconda create --name <env> --file spec-file.txtpip install -r requirements.txtEdit files in examples to enter mainframe IP and Port number
python examples\FILENAMEEdit files in functionaltest to enter mainframe IP and Port number
python unittest\FILENAMEpython functionaltest\FILENAME