Setting Up Port Polling - Mini-Circuits ISC-2425-25+ Quick Start Manual

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

Advertisement

3.2.2

Setting up port polling

The next part of the constructor sets up the port polling of the GUI.
The name of a serial port is something that is flexible. For example, if two signal generators are plugged into the same
computer, each will have a different name/number, and the user should be able to connect to the particular one they
need.
To account for devices appearing and disappearing, the list of available ports is kept up to date continuously using a timer
(QTimer object).
Qt QTimer documentation:
The timer 'port_poll_timer' has its timeout signal connected to the update_port_list slot function.
Afterwards, the timer is started with the value POLL_TIMER provided as the argument.
'POLL_TIMER' is defined near the top of mainwindow.cpp as 1000. So, the timer operates at intervals of 1000ms, or 1
second. Every time it expires, the timeout() signal is emitted, which triggers the update_port_ list slot function.
AN-50-008
Rev: OR
This document and its contents are the property of Mini-Circuits.
https://doc.qt.io/qt-5/qtimer.html
DCO-000822
(03/07/22)
File: AN-50-008.docx
Page 10 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?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for Mini-Circuits ISC-2425-25+

Table of Contents