/DiagnosticTool-Modbus-App

This application is designed for the company PEG and is written in Python. Its core functionalities are built using the pymodbus library for device communication and the PyQt6 library for the graphical user interface (GUI). The application facilitates reading and writing data from the device through a serial client.

Primary LanguagePython

Description

This application is designed for the company PEG and is written in Python. Its core functionalities are built using the pymodbus library for device communication and the PyQt6 library for the graphical user interface (GUI). The application facilitates reading and writing data from the device through a serial client. It is structured into four main components: the menubar, toolbar, communication, and values table.

Tip

Using a MakeFile is recommended as it automates repetitive tasks such as building, testing, and deployment.

Requirements

Library Version
pymodbus v3.6.9
pandas v2.2.2
pyserial v3.5
numpy v2.0.0
PyQt6 v.6.7.0

Setup

MakeFile

make install

Manual

Windows

pip install -r requirements.txt

MacOS/Linux

pip3 install -r requirements.txt

Manual + .venv

Note

Using venv isolates project dependencies, preventing conflicts and keeping your global Python environment clean.

Windows

python -m venv .venv
.venv/bin/pip3 install -r requirements.txt

MacOS/Linux

python3 -m venv .venv
.venv/bin/pip3 install -r requirements.txt

Run

MakeFile

Warning

It works only if you make setup throve MakeFile or Manually + .venv

make run

Manual

Warning

It works only if you make setup manually as well.

Windows

python src/run.py

MacOS/Linux

python3 src/run.py

Manual + .venv

Warning

It works only if you make setup throve MakeFile or Manually + .venv

Window/MacOS/Linux

.venv/bin/python3 src/run.py

Clean

Important

Only if you were using MakeFile or .venv

MakeFile

make clean

Manual

Window/MacOS/Linux

.venv/bin/python3 src/run.py

Example

example