Skip to content

angelinath21/STIM300

Repository files navigation

STIM300 - Serial Communication with GUI

This Python project provides a graphical user interface for serial communication. It includes features for reading and displaying serial data, running test sequences, and more.

Table of Contents

Environment Setup

1. Install Python and Virtual Environment

sudo apt update
sudo apt install python3 python3-venv

2. Install a Virtual Modem Emulator

To emulate serial communication between two ports, install any virtual modem emulator and establish serial communication with 'full handshake' between both selected COM ports. Virtual Null Modem (Trial version) is recommended. In this code, Serial Read is set as 'COM2' and Serial Write is set as 'COM1'. This can be set according to your needs in the code.

Virtual Null Modem Download

Running the Code

1. Clone Repository to your machine

git clone https://github.com/angelinath21/STIM300
cd STIM300

2. Activate virtual env

python3 -m venv venv
source venv/bin/activate

4. Setup and launch with launch script

chmod +x launch.sh
./launch.sh run

System Overview

The Serial Communication GUI consists of a graphical interface for interacting with serial devices. It includes features such as reading and displaying serial data, running test sequences, and more.

Usage Instructions

1. Sample Frequency:

Enter the desired sample frequency (in Hz) in the provided input field. Click the "Enter" button to set the sample frequency.

2. Enter Test Sequence:

Click "Test Auto," "Test Normal," or "Test Serial" to add corresponding test sequences to the display. If a wrong test is added, clear test sequence and re-input test sequence.

3. Run Test:

Click the "Run Test" button to start the serial communication based on the defined sample frequency and test sequences.

4. Start Serial:

Serial data received will be displayed in the "Serial Read Display" section. Click "Start Serial" to initiate serial communication. This will also open an external terminal that sends

5. Status Box:

The "Status Box" provides information about the system's current status.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors