Skip to content

Serial Lab is a Windows application (Written in C#) that reads, writes and plots data from/to serial port

Notifications You must be signed in to change notification settings

hhornburg/Serial-Lab

 
 

Repository files navigation

Serial Lab is a Windows application (Written in C#) that reads, writes and plots data from/to serial port.

Youtube

https://www.youtube.com/watch?v=9CP6luC7eBs

Features

  • Read and write data to serial ports even under high traffic load without freezing.
  • Serial plotter for up to 5 different channels with useful options for curve fitting.
  • There are 3 different modes to write data to the serial port: Send word - Key capture - Write from file.
  • Displaying incoming data as String or Hex.
  • Data logger to save incoming data to a .txt or .csv file.

How to plot serial data?

In order for the data to be plotted, variables must be seperated by comma ( , ) and a newline ( \n ) character must be added at the end. Or the 4 LSB in the byte sent corespond to the HIGH/LOW states of four Pins.

####Here an example code for Arduino platform

void setup()
{
	float var1, var2, var3;
	Serial.begin(9600);
}					

void loop()
{
	for(int i=0; i<360; i++)
	{
		var1 = 	sin(i* DEG_TO_RAD);
		var2 = -1*sin(i* DEG_TO_RAD);
		var3 = 	0.5*sin(i* DEG_TO_RAD);
		//send variables
		serial.print(var1);
		serial.print(",");
		serial.print(var2);
		serial.print(",");
		serial.print(var3);
		serial.println();
	}
}

so data must be in this form

var1,var2,var3\n

or

00001010

and the result will be as shown in the image below

Download

Currently only self compiled

Author

Current Author: [email protected]

Original Author: Ahmed El-Sayed
[email protected]

License

Licensed under the GNU GPLv3
Icon is designed by Freepik from Flaticon

About

Serial Lab is a Windows application (Written in C#) that reads, writes and plots data from/to serial port

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 88.5%
  • C++ 11.5%