
AN-50-008 Rev: OR DCO-000822 (03/07/22) File: AN-50-008.docx
This document and its contents are the property of Mini-Circuits. Page 2 of 26
1. Introduction................................................................................................................................. 1
2. Graphical User Interface.............................................................................................................. 2
2.1 GUI Layout ..........................................................................................................................................................2
2.2 Using the GUI ...................................................................................................................................................... 3
3. Source Code................................................................................................................................. 5
The source code of the GUI consists of the following files: .......................................................................................5
3.1 Core Concepts.....................................................................................................................................................5
3.1.1 Slots and signals .............................................................................................................................................. 5
3.1.2 MainWindow class...........................................................................................................................................5
3.1.3 QDebug............................................................................................................................................................ 6
3.2 Constructor ......................................................................................................................................................... 6
3.2.1 Preparing the serial port ................................................................................................................................. 6
3.2.1.1 Error handling ..............................................................................................................................................7
3.2.1.2 Setting the port name .................................................................................................................................. 7
3.2.2 Setting up port polling ..................................................................................................................................... 8
3.2.2.1 Updating the port list...................................................................................................................................9
3.2.3 UI start-up state.............................................................................................................................................10
3.3 Button management – Serial Connections .......................................................................................................11
3.3.1 Ports comboBox ............................................................................................................................................ 11
3.3.2 Connect .........................................................................................................................................................11
3.3.3 Disconnect ..................................................................................................................................................... 12
3.3.4 Auto-Detect & Connect .................................................................................................................................12
3.4 Button management – Command Buttons .......................................................................................................13
3.4.1 WriteRead...................................................................................................................................................... 14
3.4.2 WriteRead_OK ...............................................................................................................................................16
3.4.3 Printing communications to the log ..............................................................................................................16
3.5 Sweeping...........................................................................................................................................................17
3.5.1 Executing a sweep and parsing the data.......................................................................................................18
3.5.2 Drawing a plot from the sweep data.............................................................................................................20
3.5.3 Plot notation buttons ....................................................................................................................................21
3.6 About button .................................................................................................................................................... 22
Table of Contents