Visualize Touch Data using Data Visualizer
Objective
This page provides information on configuring the Data Visualizer option in MPLAB® Harmony based touch projects and visualizing the touch technology data in the Data Visualizer tool.
Reference Materials
- Data Visualizer: Download
Procedure
Enable Data Visualizer
Ensure the Enable Data-Streamer option is selected in the Debug Option section of the Parameters tab while generating the project in the Harmony Configurator.
Detailed information on how to generate a touch project using Harmony Configurator can be found on the "Generate a Touch Project with MPLAB® Harmony" page.
Choose and configure UART
In the Project Graph window, in the QTouch® Library middleware, a new dependency called UART (a yellow icon) is shown.
Right-click on the UART icon and select the proper SERCOM from the Satisfiers list.
The chosen SERCOM appears on the project graph and the connection to the QTouch Library is made.
Click on the SERCOM module. The configuration options are on the right side. Choose the PADs for the receive and transmit pinout from the schematics.
Select pin configuration
Click on Tools > Pin Configuration to choose the UART pins.
From the schematics of the board, we know the UART TX and RX pins. Go to the Pin Settings tab and choose the pins for the configured SERCOM.
Generate and program the board
Click on the Generate Code icon at the top left corner of the screen to generate the code.
The project is populated with touch source and header files. The datastreamer source files and script files are found under the datastreamer folder of the project.
In the main.c file, call the function touch_process to invoke all touch functionalities.
Open Data Visualizer
The Xplained Pro Kits support Data Gateway Interface (DGI) and virtual COM Port interface in order to transmit data from the kits to the Data Visualizer.
In touch projects, debug data is sent through the serial interface (COM Port).
When the kit is connected, the EDBG will be recognized under Serial Port Control Panel title bar.
Select COM Port
In the Serial Port Control Panel:
Configuration Files
Dashboard
The dashboard displays basic and advanced information in a tabular/graphical form:
Basic Information
Advanced Information
Graphical Information
The graphical view provides a graphical representation of the signal, reference, and touch delta.
Lastly, by clicking on the legends, you can select the desired signals to plot.