Menu

Changing the refresh interval in plots (Widgets and Windows)

Anonymous
2016-01-02
2016-01-10
  • Anonymous

    Anonymous - 2016-01-02

    Hi Stefan,
    I'm working and testing the behaviour of the plots over long periods of time (hours). I've observed that the script suffers updating plots when you have 4/8 channels and thousands of data per channel.
    I've decreased successfully the plot update rate by introducing a script-callable setUpdateInterval() function.
    This is the source in scriptplotwidget.cpp.

    /**
     * Redefine the plot update interval.
     */
    void ScriptPlotWidget::setUpdateIntervalSlot(long ms)
    {
        if (ms >= 100) {
            m_plotTimer->setInterval(ms);
        }
    }
    

    I've also updated the signals/slots in scriptplotwidget.cpp, scriptplotwidget.h and scriptplotwindowt.h

    You could have a different refresh interval for every plot window (or widget). I.e. you can do a very fast refresh in DSO applications or slow in long data acquisitions

    Cheers,
    Pier Andrea.

     
  • Stefan Zieker

    Stefan Zieker - 2016-01-10

    Hi Pier,

    I have overlooked your post :-). I will add this function in the next release (3.29).

    Best regards,
    Stefan

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.