Wednesday, August 1, 2012

qSerialTerm: Improved and now can be used as Data Logger

qSerialTerm, the Qt based serial port emulator, has been improved from its first version, and now has a data logging feature, all the improvements are listed below:

  • Added data logging feature (rewrite file or append to file).
  • Reading data from the serial port is now periodic.
  • Fixed lose of focus when data is received.
  • Rearranged docks.
  • Docks can be called back from the "View" menu.

You can see below the new looks of qSerialTerm.

qSerialTerm new looks

I'll now show you via images the new logging feature. Below you can see the log file selection dialog.

Selecting the log file.

Before start logging, you can select whether to overwrite or to append to an existing file, using the "append" checkbox. After you start logging, a timer will show for how long you have been logging.

Testing the logging feature.

On the following image, you can see the contents of the "log.txt"

Checking the log file.

Repository


4 comments:

  1. Hi Jorge,

    I've tried to download your code from github. But when I run it, there are a few errors appeared.

    Fatal error in serialportwidget.h with these:
    #include
    #include

    Fatal error in serialport.h with these:
    #include "serialport-global.h"

    Fatal error in circularbuffer.h with these:
    #include

    I'm looking forward to reading your reply.
    Thanks.


    Regards
    ILHAM

    ReplyDelete
    Replies
    1. Hello ILHAM,

      qSerialTerm depends on two libraries: QtSerialPort and libqwt.

      Be sure to check the repository's wiki.

      In that wiki you'll find out how to install these libraries.

      Regards,

      Jorge Aparicio

      Delete
  2. Sorry, it was seem right.
    I mean:

    Fatal error in serialportwidget.h with these:
    [code]
    #include QtAddOnSerialPort/serialport.h
    #include QtAddOnSerialPort/serialportinfo.h
    [/code]

    Fatal error in serialport.h with these:
    [code]
    #include "serialport-global.h"
    [/code]

    Fatal error in circularbuffer.h with these:
    [code]
    #include qwt_series_data.h
    [/code]

    I'm looking forward to reading your reply.
    Thanks.


    Regards
    ILHAM

    ReplyDelete
  3. Hello, i was trying to run qSerialTerm in QT5 and i've multiple problems.

    At least I change some lines of code to adapt it to QT5 and the result is here:

    https://github.com/lrmoreno007/QT5SerialTerm

    Thanks a lot to Jorge Aparicio.
    -----------------------------------------------------

    ¿Hablas español Jorge? Me cuesta mucho expresarme en inglés. Quería decirte, que si tienes algún inconveniente con mi repositorio lo cambio o lo elimino, sin problema. Soy muy muy nuevo en esto de la programación en QT, de hecho esta adaptación ha sido mi primer contacto con QT. Y mucho mas novato en GitHub, he intentado subir el proyecto como Fork, pero no he sabido hacerlo, por eso he tenido que cambiarle el nombre.

    Muchas gracias por brindarnos este proyecto a todos. Un saludo.

    ReplyDelete