Microchip | The Embedded Control Solutions Company Register Login
Browse All
Microchip Technology
 368 Code Snippets

PIC Data Plotter

Microchip Technology

The Microchip Data Logger is a GUI which can be controlled via communication port. The program can display the data received from the communication port in graphical form. Also the incoming data can be displayed in the log window or can be captured in a file. The GUI can send the data to the communication port in ASCII or binary format.

About this Code Example

The installation package includes the PIC MCU demo projects. They will be installed on the system drive root in Microchip Data Logger folder:

  1. graph_x_direct demo draw a graph. x and y coordinates are transmitted separately.
  2. graph_auto_x_step demo displays a graph. x coordinate is not transmitted and incremented by GUI automatically.
  3. variable_request demo shows how to request a variable value from GUI using #VG command. The PIC MCU send a request for data and wait for the GUI response.
  4. variable_from_gui demo shows how to process variable sent from GUI (#VR command).  When GUI Send button is pressed on Variables Tab the GUI transmit the variable tab ID, variable ID and value to the PIC MCU.  The MCU application code parses the received IDs and reads the transmitted value of the variable.

To run the demo projects, the Explorer 16 Development Board with PIC24FJ128GA010 PIM is used. All demos include the same UART driver (uart.h/uart.c). The driver is interrupt driven and has 2 FIFOs for receiving and transmission data. The driver code removes \r=0x0d escape character from binary data if \r\r sequence is detected. Also it adds \r bytes if the binary data for the GUI contains this \r value = 0x0d. GUI parameters such as titles and formats are set from PIC MCU using a special initialization string.


Release History

  • Jan 29, 2015

    Version: 1.0.0

    First release

Download Contact the Developer

*Required Fields

  • Current Version:1.0.0
  • Created:Jan 29, 2015
  • Updated:Jun 20, 2017
  • Downloads:19968
  • MPLAB Version:Any
  • C Compiler:xc16, xc32
  • Development Tools:Explorer 16
  • Supported Devices:PIC18, PIC24, dsPIC, PIC32

Corporate News


Stay Connected

Stay up to date with the latest news from Microchip Technology.