Executing A Sweep And Parsing The Data - Mini-Circuits ISC-2425-25+ Quick Start Manual

Hide thumbs Also See for ISC-2425-25+:
Table of Contents

Advertisement

3.5.1

Executing a sweep and parsing the data

Execution and parsing of the sweep data occurs in the 'SWP_run_sweep' function.
First the sweep command is sent to the signal generator. The writeRead_OK function is used and the response, which
potentially spans hundreds of lines depending on the provided parameters, is stored as one long string in QString
'SWP_raw_data'.
As mentioned before, the $SWPD command is used, which takes power in dBm as an argument from 'lineEdit_SWP_4'.
The power in watt from 'lineEdit_SWP_5' goes unused, and is only there for the convenience of the user.
Next the response's contents are checked. If the response contains the strings "$SWPD," and "OK\r\n", it indicates the
sweep has completed successfully.
If the sweep is successful, the data gets divided up into more manageable chunks.
This is done by splitting the giant Qstring 'SWP_raw_data' at all of the "\r\n" bits, and storing each line as an individual
item into a QStringList called 'SWP_data'. The two last items in the list (OK message and an empty line) are promptly
deleted, as they are of no further use, and would only get in the way when parsing the data.
If the sweep fails (for example because of an invalid input in the sweep lineEdits), it instead pops an error message and
returns false, letting the program know it shouldn't try to draw a plot from this data.
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 22 of 26

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ISC-2425-25+ and is the answer not in the manual?

Table of Contents