Getting Started

Let's get started with PlotEasy!

User interface overview

1- Serial COM port and baud rate selector

2- Local server port selector.

3- Run/Stop logging.

4- Tags table.

5- Tags add/remove.

6- Error/Message logs.

Connecting Arduino with PlotEasy

1- Copy library folder PlotEasy from ..\PlotEasy\Libraries\PlotEasy-Arduino\ and paste it to ..\Arduino\libraries\

2- Open arduino example from ..\Examples\Arduino Sample\sketch_may16a\ . The sample code will look something like below. This code will generate two waves at ID 1 and 2.

#include "PlotEasy.h"
#include "Math.h"
void setup() {
  // put your setup code here, to run once:
  Serial.begin(38400);
}
PlotEasy pl;
float i = 2;
void loop() {
  // put your main code here, to run repeatedly:

  float y = sin(i);
  pl.PlotEasywrite(1,i);
  pl.PlotEasywrite(2,y);
  i=i+0.1;
  if (i>=7.4)
  {
   i=2; 
  }
  delay(500);
}

4- Download code in arduino.

5- Open PlotEasy.

6- Add parameters of ID 1 and 2 as declared in arduino code.

7- Select Arduino Serial port/COM.

8- Click Run to save and monitor data.

9- Now click on the link. This will open default web browser.

10- In web browser click start. This will enables you to monitor the data. Use controls on table to change the plot behaviour on your requirement.

Arduino library Explanation

#include "PlotEasy.h"

Header to include Arduino ploteasy library.

PlotEasywrite(int,float)

Writes a value to given id. argument 1 = ID, argument 2 = value.

Connecting C based microcontroller with PlotEasy

You can find an example at location ...\PlotEasy\Examples\TM4C123 Sample\, developed in Kiel v4.7

Hardware: Tiva C Series TM4C123G LaunchPad

Library location: ..\PlotEasy\Libraries\PlotEasy-C\

The code below will send data of tag ID = 2 to PlotEasy.

#include "PLL.h"
#include "UART.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "ploteasy.h" //Including plotEasy Library

char es[23];
int main(void){
float z = 0;
PLL_Init();					//Initialize PLL
UART_Init();              // initialize UART
while(1)
{
    analog(2, z,es); //Calling PlotEasy function 2 = ID, z = value , es = string to store ploteasy string
    UART_OutString(es); //Sending string to ploteasy
    z = z+0.1;
}
}

Rest all the steps are same as arduino data monitoring.