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/hbkworld/ghs-gendaqapi-python.gitOption 1 : Create Environment Using Conda
Run the following command to create environment from the specification file
conda create --name <venv_name> --file spec-file.txt
conda activate <venv_name>Option 2 : Create Environment Using Python
Navigate to the root of the repository to create virtual environment
py -m venv <venv_name>
<venv_name>\Scripts\activatepip 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