PIC Data Plotter
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:
- graph_x_direct demo draw a graph. x and y coordinates are transmitted separately.
- graph_auto_x_step demo displays a graph. x coordinate is not transmitted and incremented by GUI automatically.
- 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.
- 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.
- Jan 29, 2015