7.2 Data Visualizer Configuration

The Data Visualizer tool is used as a graphical user interface while demonstrating the application by displaying the emulated three-phase supply waveforms, output status and for receiving user inputs.

Pre-configured data streamer and custom dashboard files are available with the firmware package. The following steps are used for configuring Data Visualizer in the setup.
Note: Both these files are attached to the phase-sequence-detection-of-ac-supply Discover example. Refer to the Firmware section for more details.

The Data Visualizer modules used for this demonstration:

  • Serial Port
  • Custom Dashboard
    • Element Labels
    • Graphs
    • Status Indicator
    • Radio Group
  • Data Streamer

Data Visualizer Serial Port Configuration

Configure the serial port for communication with the Curiosity Nano board:

  1. To open the Serial Port control panel window, open the MPLAB Data Visualizer from the toolbar and locate the Connections tab on the left side.
  2. Expand it and click the Serial Port, as shown in Figure 7-2.
  3. Set the baud rate to 230400, parity to none and stop bits to 1.
    Figure 7-2. Serial Port Window

Data Streamer

Configure the data streamer for interfacing, and the custom dashboard window with the data streamer control panel:

  1. To open the data stream control panel, open the MPLAB Data Visualizer from the toolbar and locate the Variable Streamers tab on the left side.
  2. Expand the tab and click the Import tab that appears, as shown in Figure 7-3 (below).
  3. After clicking the Import tab, set an appropriate path for the provided data streamer file from the firmware package.
Figure 7-3. Data Streamer
Figure 7-4. Variables in Data Streamer

Custom Dashboard Configuration

Configure the custom dashboard window to display the output and to receive user inputs:

  1. To open the data stream control panel, open the MPLAB Data Visualizer from the toolbar and locate the Dashboard Widgets tab on the left side.
  2. Expand it and click the Import tab that appears, as shown in Figure 7-5 (below).
  3. Click the Load button on the dashboard window and set the appropriate path for the provided custom dashboard file from the host computer, as shown in Figure 7-6 (below).
Figure 7-5. Custom Dashboard Window
Figure 7-6. Custom Dashboard after Loading the Dashboard File
The required connections between the Data Streamer control panel and dashboard I/O window are explained below:
  1. Select the PhaseRvrsl input from the drop-down option.
    Figure 7-7. Configuring Phase-Reversal Input
  2. Select the phase input from the drop-down option. Repeat this step for all the three-phase loss status indicators (PL-1, PL-2, PL3).
    Figure 7-8. Configuring Phase Loss
  3. By clicking the graph window, a window pops up on the right side of the dashboard window. Configure the three input signals on the three different signal inputs. Also select three different colors for each waveform.
    Figure 7-9. Configuring Signals on Graph Window
  4. Configure the radio button with input from serial port for sending data over the UART.
    Figure 7-10. Configuring User Input