The data from the sweep will be saved in a set of QVectors of the type double. Qt
QVector documentation: https://doc.qt.io/qt-5/qvector.html
Remark: This data will be reused by other functions, so these QVectors have been declared ahead of time in
mainwindow.h, making them persistent and accessible to any function in the MainWindow class.
The QVectors are resized according to the number of lines available for parsing in 'SWP_data'.
Next the string data from the QStringList 'SWP_data' is processed. Every item from 'SWP_data' is done one by one.
The contents of each line, which look something like "$SWP,1,2400.00,47.23,35.53\r\n", are split at the comma
character and stored in a new QStringList called 'data'.
Starting from 0, items number 2,3 and 4 of QStringList 'data' contain the frequency, forward power, and reflected power
respectively. These values are converted from QStrings to doubles and stored at appropriate index in their respective
QVectors
From the forward and reflected power measurements the RF matching values are also calculated.
The S11 values are calculated in dB.
The reflection values, after converting the power values from dBm to watts, are calculated in %. Both are
stored their respective QVectors as well.
Remark: the code here has been slightly adjusted to keep the screenshot sufficiently legible.
Finally, the 'SWP_run_sweep' function returns true, indicating the sweep has been executed successfully and the data is
ready to use.
AN-50-008
Rev: OR
This document and its contents are the property of Mini-Circuits.
DCO-000822
(03/07/22)
File: AN-50-008.docx
Page 23 of 26
Need help?
Do you have a question about the ISC-2425-25+ and is the answer not in the manual?