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 the user inputs.
Pre-configured data streamer file and custom dashboard file are available with the
firmware package. The below steps given for data visualizer configuration use these
files to prepare the setup.
Note: Both
these files are attached to phase-sequence-detection-of-ac-supply GitHub example.
For more details refer the Firmware and Application Implementation with AVR128DA64 sections in the
appendix.
The data visualizer modules used for demonstration:
- Serial Port
- Graph
- Custom Dashboard
- Element Label
- Element Signal
- Radio Group
- Data Streamer
Data Visualizer Serial Port Configuration
- Configure the serial port for communication with the Curiosity Nano board.
- To open Serial Port control panel window, open the Configuration tab located on the left side of the data visualizer tool, expand External Connection and click the Serial Port, Serial Port Control Panel window that appears, as shown in Figure 7-2.
- Set the baud rate to 230400, parity to none and stop bits to 1.
- Ensure the DTR option is
checked and both RTS and Open Terminal options are unchecked, as shown
in Figure
7-2.
Figure 7-2. Serial Port Window
Data Streamer Configuration
- Configure the data streamer for interfacing, the Graph window, and Dashboard window with the serial port control panel.
- To open data stream control panel, open the Configuration tab located on the left side of the data visualizer tool, expand Protocols and click the Data Streamer, Data Streamer window that appears, as shown in Figure 7-3.
- Click the ‘…’ symbol in the Data Stream control panel window, set an appropriate path for the provided data streamer file from the host computer, as shown in Figure 7-3.
- Click Load in the data streamer control panel window, as shown in Figure 7-3. The Data Streamer window will load with ports, as shown in Figure 7-4.
- Drag COM0 ouput of the Serial Port control panel window and drop on to Source port of data streamer control panel window, as shown in Figure 7-5.
Graph Configuration
- Configure the Graph window for displaying the emulated three-phase supply AC waveforms, generated by the waveform clicks.
- To open Graph window, click the Configuration tab located on the left side of the data visualizer tool, expand Visualization option and click Graph, Graph module that appears, as shown in Figure 7-6.
- The required connections between the
data stream control panel and the graph window are explained below.
- Drag Signal-L1 port from Data Stream control panel and drop onto New Plot below the Axis 0 label in Graph window.
- Drag Signal-L2 port from Data Stream control panel and drop onto New Plot below the Axis 0 label in Graph window.
- Drag Signal-L3 port from Data Stream control panel and drop onto New Plot below the Axis 0 label in Graph window.
- Figure 7-7 shows the reference figure for connection between Data stream and Graph.
- After the connections are done
between the data streamer and the Graph module, the Graph module configuration
window appears, as shown in Figure
7-8.
Figure 7-8. Graph Module Configuration Window
- Refer to Figure 7-12 to cross verify the connections between the data stream control panel and the Graph window.
- Double click Plot 1 sine wave symbol and adjust the (R, G, B) color index values to (255, 255, 0) to set the yellow color, as shown in Figure 7-9.
Custom Dashboard Configuration
- Configure the custom dashboard window to display the output and to receive user inputs.
- To open the custom dashboard window,
open the Configuration tab located on the left side of the data visualizer
tool, expand Visualization, and click Custom Dashboard that appears as
shown in Figure 7-10.
Figure 7-10. Custom Dashboard Window - Check Edit below the dashboard I/O window, click Load, and set the appropriate path for the provided custom dashboard file from the host computer, as shown in Figure 7-11.
- Check Show Endpoints below the dashboard I/O window.
- The required connections between data
stream control panel and dashboard I/O window are explained below:
- Drag the PhaseRvrsl port from the Data Stream control panel and drop onto the square green box below the text Phase reversal in the dashboard I/O window.
- Drag the PL-L1 port from Data Stream control panel and drop onto the green square box below the text Phase Loss and next to the label ‘L1’ in the dashboard I/O window.
- Drag the PL-L2 port from Data Stream control panel and drop onto the green square box below the text Phase Loss and next to the label ‘L2’ in the dashboard I/O window.
- Drag the PL-L3 port from Data Stream control panel and drop onto the green square box below the text Phase Loss and next to the label ‘L3’ in the dashboard I/O window.
- Drag the VrmsL1 port from Data Stream control panel and drop onto the 0.00 value (highlighted in green) below the L1 Vrms label in the dashboard I/O window.
- Drag the VrmsL2 port from Data Stream control panel and drop onto the 0.00 value (highlighted in green) below the L2 Vrms label in the dashboard I/O window.
- Drag VrmsL3 port from Data Stream control panel and drop onto 0.00 value (highlighted in green) below the L3 Vrms label in the dashboard I/O window.
- Drag the Freq port from Data Stream control panel and drop onto the 0.00 value (highlighted in green color) below the Frequency (Hz) label in the dashboard I/O window.
- Connect the Radio button array in the dashboard I/O and below the label Recover (blue label) to the Serial Port control panel receiver port, as shown in Figure 7-12.
- Uncheck the Show Endpoints radio button below the dashboard I/O, after the connections are completed.
Figure 7-12 shows the required connections between the custom dashboard, data stream control panel, and the serial port control panel windows.
Figure 7-12. Data Visualizer Connection Reference Diagram