Discussion:
Graph not updating on startup
Trevor Young
2017-03-23 06:38:04 UTC
Permalink
I have a script logging data to file and use kde to graph it but I often
encounter an issue with the graph not updating itself on startup. Kst will
load an initial set of data, and then a second or so later, do a single
second update. The graph won't start live updating until I go into the
data manager and double click on any of the entries there, then it starts
to auto update. I don't need to make any changes, just have to double click
on something and bring up the dialog box. Has anyone else encountered this
or have an idea why this may be happening?

I'm running an up to date copy of debian stable.

Thanks.
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
C Barth Netterfield
2017-03-23 13:06:04 UTC
Permalink
Hi, Trevor,

Unfortunately, the version of kst in debian is extremely old, and full of
known bugs, and there is no maintainer for that debian package :-(

We do have an ubuntu ppa we keep up to date (but you would have to switch to a
recent ubuntu)

Or you can build from source. Let me know if you would like some help with
that.

cbn
Post by Trevor Young
I have a script logging data to file and use kde to graph it but I often
encounter an issue with the graph not updating itself on startup. Kst will
load an initial set of data, and then a second or so later, do a single
second update. The graph won't start live updating until I go into the
data manager and double click on any of the entries there, then it starts
to auto update. I don't need to make any changes, just have to double click
on something and bring up the dialog box. Has anyone else encountered this
or have an idea why this may be happening?
I'm running an up to date copy of debian stable.
Thanks.
Trevor Young
2017-03-23 20:54:35 UTC
Permalink
You're right, I thought I had grabbed 2.0.8 from the ubuntu ppa but I had
only gotten 2.0.3 from the debian repo. I have several debian systems where
I am happy to pull from the ubuntu ppa but I have another system where a
kst binary isn't available at all so I'd like to learn to compile and it
uses qt5 instead of qt4. How do I effect the cmake switch mentioned on the
kst source page?

Thanks

Trevor

On Thu, Mar 23, 2017 at 3:06 AM, C Barth Netterfield <
Post by C Barth Netterfield
Hi, Trevor,
Unfortunately, the version of kst in debian is extremely old, and full of
known bugs, and there is no maintainer for that debian package :-(
We do have an ubuntu ppa we keep up to date (but you would have to switch to a
recent ubuntu)
Or you can build from source. Let me know if you would like some help with
that.
cbn
Post by Trevor Young
I have a script logging data to file and use kde to graph it but I often
encounter an issue with the graph not updating itself on startup. Kst
will
Post by Trevor Young
load an initial set of data, and then a second or so later, do a single
second update. The graph won't start live updating until I go into the
data manager and double click on any of the entries there, then it starts
to auto update. I don't need to make any changes, just have to double
click
Post by Trevor Young
on something and bring up the dialog box. Has anyone else encountered
this
Post by Trevor Young
or have an idea why this may be happening?
I'm running an up to date copy of debian stable.
Thanks.
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
Trevor Young
2017-03-23 22:35:59 UTC
Permalink
Actually I must have originally gotten the package from the opensuse
binaries page. I installed a package from the ubuntu vivid ppa but still
have the same problem. Perhaps it is debian related. Nobody else has ever
experienced this?
Post by Trevor Young
You're right, I thought I had grabbed 2.0.8 from the ubuntu ppa but I had
only gotten 2.0.3 from the debian repo. I have several debian systems where
I am happy to pull from the ubuntu ppa but I have another system where a
kst binary isn't available at all so I'd like to learn to compile and it
uses qt5 instead of qt4. How do I effect the cmake switch mentioned on the
kst source page?
Thanks
Trevor
On Thu, Mar 23, 2017 at 3:06 AM, C Barth Netterfield <
Post by C Barth Netterfield
Hi, Trevor,
Unfortunately, the version of kst in debian is extremely old, and full of
known bugs, and there is no maintainer for that debian package :-(
We do have an ubuntu ppa we keep up to date (but you would have to switch to a
recent ubuntu)
Or you can build from source. Let me know if you would like some help with
that.
cbn
Post by Trevor Young
I have a script logging data to file and use kde to graph it but I often
encounter an issue with the graph not updating itself on startup. Kst
will
Post by Trevor Young
load an initial set of data, and then a second or so later, do a single
second update. The graph won't start live updating until I go into the
data manager and double click on any of the entries there, then it
starts
Post by Trevor Young
to auto update. I don't need to make any changes, just have to double
click
Post by Trevor Young
on something and bring up the dialog box. Has anyone else encountered
this
Post by Trevor Young
or have an idea why this may be happening?
I'm running an up to date copy of debian stable.
Thanks.
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
Barth Netterfield
2017-03-23 22:46:57 UTC
Permalink
Hmmm... these are ascii files?

It sounds like the update type isn't getting set right.

If you open one of the vectors in the vector edit dialog, what does it say
the update type is?
Post by Trevor Young
Actually I must have originally gotten the package from the opensuse
binaries page. I installed a package from the ubuntu vivid ppa but still
have the same problem. Perhaps it is debian related. Nobody else has ever
experienced this?
Post by Trevor Young
You're right, I thought I had grabbed 2.0.8 from the ubuntu ppa but I had
only gotten 2.0.3 from the debian repo. I have several debian systems where
I am happy to pull from the ubuntu ppa but I have another system where a
kst binary isn't available at all so I'd like to learn to compile and it
uses qt5 instead of qt4. How do I effect the cmake switch mentioned on the
kst source page?
Thanks
Trevor
On Thu, Mar 23, 2017 at 3:06 AM, C Barth Netterfield <
Post by C Barth Netterfield
Hi, Trevor,
Unfortunately, the version of kst in debian is extremely old, and full of
known bugs, and there is no maintainer for that debian package :-(
We do have an ubuntu ppa we keep up to date (but you would have to switch to a
recent ubuntu)
Or you can build from source. Let me know if you would like some help with
that.
cbn
Post by Trevor Young
I have a script logging data to file and use kde to graph it but I
often
Post by Trevor Young
encounter an issue with the graph not updating itself on startup. Kst
will
Post by Trevor Young
load an initial set of data, and then a second or so later, do a single
second update. The graph won't start live updating until I go into the
data manager and double click on any of the entries there, then it
starts
Post by Trevor Young
to auto update. I don't need to make any changes, just have to double
click
Post by Trevor Young
on something and bring up the dialog box. Has anyone else encountered
this
Post by Trevor Young
or have an idea why this may be happening?
I'm running an up to date copy of debian stable.
Thanks.
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
C. Barth Netterfield
University of Toronto
416-845-0946
Barth Netterfield
2017-03-23 22:53:51 UTC
Permalink
I just tried the following test:
in one terminal:

while 1;
do date +%s >> tmp.dat && sleep 1
done

In another terminal

kst2 tmp.dat -y 1

The resulting plot updates every second, as expected. Can you try this
test?


On Thu, Mar 23, 2017 at 6:46 PM, Barth Netterfield <
Post by Barth Netterfield
Hmmm... these are ascii files?
It sounds like the update type isn't getting set right.
If you open one of the vectors in the vector edit dialog, what does it say
the update type is?
Post by Trevor Young
Actually I must have originally gotten the package from the opensuse
binaries page. I installed a package from the ubuntu vivid ppa but still
have the same problem. Perhaps it is debian related. Nobody else has ever
experienced this?
Post by Trevor Young
You're right, I thought I had grabbed 2.0.8 from the ubuntu ppa but I
had only gotten 2.0.3 from the debian repo. I have several debian systems
where I am happy to pull from the ubuntu ppa but I have another system
where a kst binary isn't available at all so I'd like to learn to compile
and it uses qt5 instead of qt4. How do I effect the cmake switch mentioned
on the kst source page?
Thanks
Trevor
On Thu, Mar 23, 2017 at 3:06 AM, C Barth Netterfield <
Post by C Barth Netterfield
Hi, Trevor,
Unfortunately, the version of kst in debian is extremely old, and full of
known bugs, and there is no maintainer for that debian package :-(
We do have an ubuntu ppa we keep up to date (but you would have to switch to a
recent ubuntu)
Or you can build from source. Let me know if you would like some help with
that.
cbn
Post by Trevor Young
I have a script logging data to file and use kde to graph it but I
often
Post by Trevor Young
encounter an issue with the graph not updating itself on startup.
Kst will
Post by Trevor Young
load an initial set of data, and then a second or so later, do a
single
Post by Trevor Young
second update. The graph won't start live updating until I go into
the
Post by Trevor Young
data manager and double click on any of the entries there, then it
starts
Post by Trevor Young
to auto update. I don't need to make any changes, just have to double
click
Post by Trevor Young
on something and bring up the dialog box. Has anyone else encountered
this
Post by Trevor Young
or have an idea why this may be happening?
I'm running an up to date copy of debian stable.
Thanks.
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
C. Barth Netterfield
University of Toronto
416-845-0946 <(416)%20845-0946>
--
C. Barth Netterfield
University of Toronto
416-845-0946
Trevor Young
2017-03-23 23:36:03 UTC
Permalink
The file is ascii. I have the update type set to change detection.
Perhaps time interval would be better. It is a 20hz data feed so I'll try
setting the update interval to 50ms.

Your test loop seems to work fine.

On Thu, Mar 23, 2017 at 12:53 PM, Barth Netterfield <
Post by Barth Netterfield
while 1;
do date +%s >> tmp.dat && sleep 1
done
In another terminal
kst2 tmp.dat -y 1
The resulting plot updates every second, as expected. Can you try this
test?
On Thu, Mar 23, 2017 at 6:46 PM, Barth Netterfield <
Post by Barth Netterfield
Hmmm... these are ascii files?
It sounds like the update type isn't getting set right.
If you open one of the vectors in the vector edit dialog, what does it
say the update type is?
Post by Trevor Young
Actually I must have originally gotten the package from the opensuse
binaries page. I installed a package from the ubuntu vivid ppa but still
have the same problem. Perhaps it is debian related. Nobody else has ever
experienced this?
Post by Trevor Young
You're right, I thought I had grabbed 2.0.8 from the ubuntu ppa but I
had only gotten 2.0.3 from the debian repo. I have several debian systems
where I am happy to pull from the ubuntu ppa but I have another system
where a kst binary isn't available at all so I'd like to learn to compile
and it uses qt5 instead of qt4. How do I effect the cmake switch mentioned
on the kst source page?
Thanks
Trevor
On Thu, Mar 23, 2017 at 3:06 AM, C Barth Netterfield <
Post by C Barth Netterfield
Hi, Trevor,
Unfortunately, the version of kst in debian is extremely old, and full of
known bugs, and there is no maintainer for that debian package :-(
We do have an ubuntu ppa we keep up to date (but you would have to switch to a
recent ubuntu)
Or you can build from source. Let me know if you would like some help with
that.
cbn
Post by Trevor Young
I have a script logging data to file and use kde to graph it but I
often
Post by Trevor Young
encounter an issue with the graph not updating itself on startup.
Kst will
Post by Trevor Young
load an initial set of data, and then a second or so later, do a
single
Post by Trevor Young
second update. The graph won't start live updating until I go into
the
Post by Trevor Young
data manager and double click on any of the entries there, then it
starts
Post by Trevor Young
to auto update. I don't need to make any changes, just have to
double click
Post by Trevor Young
on something and bring up the dialog box. Has anyone else
encountered this
Post by Trevor Young
or have an idea why this may be happening?
I'm running an up to date copy of debian stable.
Thanks.
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
C. Barth Netterfield
University of Toronto
416-845-0946 <(416)%20845-0946>
--
C. Barth Netterfield
University of Toronto
416-845-0946 <(416)%20845-0946>
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
Ben Lewis
2017-03-23 23:57:45 UTC
Permalink
Hi Trevor,

Your update rate should not necessary be the same as your sampling rate. For slow sampling rates
(e.g. less than 1 Hz) this may be okay but no so for faster sampling rates.

I guess it depends on whether your data file is local or remote (accessed over a network). My data
files are typically remote. I regularly sample multiple channels at 10 kHz and use a Kst update
interval of 1 sec. This means that Kst reads 10k new samples every update. If I set the Kst interval
to 100 microseconds Kst would not have time to read each sample before the next sample was produced.

I would suggest starting with an update interval of around one second and then reducing this in
steps if there are no update problems. In your case this means Kst will read 20 new samples on each
update.

Regards, Ben
The file is ascii. I have the update type set to change detection. Perhaps time interval would
be better. It is a 20hz data feed so I'll try setting the update interval to 50ms.
Your test loop seems to work fine.
while 1;
do date +%s >> tmp.dat && sleep 1
done
In another terminal
kst2 tmp.dat -y 1
The resulting plot updates every second, as expected. Can you try this test?
Hmmm... these are ascii files?
It sounds like the update type isn't getting set right.
If you open one of the vectors in the vector edit dialog, what does it say the update type is?
Actually I must have originally gotten the package from the opensuse binaries page. I
installed a package from the ubuntu vivid ppa but still have the same problem. Perhaps
it is debian related. Nobody else has ever experienced this?
You're right, I thought I had grabbed 2.0.8 from the ubuntu ppa but I had only
gotten 2.0.3 from the debian repo. I have several debian systems where I am happy
to pull from the ubuntu ppa but I have another system where a kst binary isn't
available at all so I'd like to learn to compile and it uses qt5 instead of qt4.
How do I effect the cmake switch mentioned on the kst source page?
Thanks
Trevor
On Thu, Mar 23, 2017 at 3:06 AM, C Barth Netterfield
Hi, Trevor,
Unfortunately, the version of kst in debian is extremely old, and full of
known bugs, and there is no maintainer for that debian package :-(
We do have an ubuntu ppa we keep up to date (but you would have to switch to a
recent ubuntu)
Or you can build from source. Let me know if you would like some help with
that.
cbn
Post by Trevor Young
I have a script logging data to file and use kde to graph it but I often
encounter an issue with the graph not updating itself on startup. Kst will
load an initial set of data, and then a second or so later, do a single
second update. The graph won't start live updating until I go into the
data manager and double click on any of the entries there, then it starts
to auto update. I don't need to make any changes, just have to double click
on something and bring up the dialog box. Has anyone else encountered this
or have an idea why this may be happening?
I'm running an up to date copy of debian stable.
Thanks.
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
C. Barth Netterfield
University of Toronto
416-845-0946 <tel:%28416%29%20845-0946>
--
C. Barth Netterfield
University of Toronto
416-845-0946 <tel:%28416%29%20845-0946>
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
Trevor Young
2017-03-24 00:17:00 UTC
Permalink
​Changing the update type to time interval solves the problem. Must be
some issue with change detection.

Thanks for the help!

Trevor
Post by Trevor Young
The file is ascii. I have the update type set to change detection.
Perhaps time interval would be better. It is a 20hz data feed so I'll try
setting the update interval to 50ms.
Your test loop seems to work fine.
On Thu, Mar 23, 2017 at 12:53 PM, Barth Netterfield <
Post by Barth Netterfield
while 1;
do date +%s >> tmp.dat && sleep 1
done
In another terminal
kst2 tmp.dat -y 1
The resulting plot updates every second, as expected. Can you try this
test?
On Thu, Mar 23, 2017 at 6:46 PM, Barth Netterfield <
Post by Barth Netterfield
Hmmm... these are ascii files?
It sounds like the update type isn't getting set right.
If you open one of the vectors in the vector edit dialog, what does it
say the update type is?
Post by Trevor Young
Actually I must have originally gotten the package from the opensuse
binaries page. I installed a package from the ubuntu vivid ppa but still
have the same problem. Perhaps it is debian related. Nobody else has ever
experienced this?
Post by Trevor Young
You're right, I thought I had grabbed 2.0.8 from the ubuntu ppa but I
had only gotten 2.0.3 from the debian repo. I have several debian systems
where I am happy to pull from the ubuntu ppa but I have another system
where a kst binary isn't available at all so I'd like to learn to compile
and it uses qt5 instead of qt4. How do I effect the cmake switch mentioned
on the kst source page?
Thanks
Trevor
On Thu, Mar 23, 2017 at 3:06 AM, C Barth Netterfield <
Post by C Barth Netterfield
Hi, Trevor,
Unfortunately, the version of kst in debian is extremely old, and full of
known bugs, and there is no maintainer for that debian package :-(
We do have an ubuntu ppa we keep up to date (but you would have to switch to a
recent ubuntu)
Or you can build from source. Let me know if you would like some help with
that.
cbn
Post by Trevor Young
I have a script logging data to file and use kde to graph it but I
often
Post by Trevor Young
encounter an issue with the graph not updating itself on startup.
Kst will
Post by Trevor Young
load an initial set of data, and then a second or so later, do a
single
Post by Trevor Young
second update. The graph won't start live updating until I go into
the
Post by Trevor Young
data manager and double click on any of the entries there, then it
starts
Post by Trevor Young
to auto update. I don't need to make any changes, just have to
double click
Post by Trevor Young
on something and bring up the dialog box. Has anyone else
encountered this
Post by Trevor Young
or have an idea why this may be happening?
I'm running an up to date copy of debian stable.
Thanks.
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
C. Barth Netterfield
University of Toronto
416-845-0946 <(416)%20845-0946>
--
C. Barth Netterfield
University of Toronto
416-845-0946 <(416)%20845-0946>
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
--
Trevor Young
Senior Marine Technician
Ocean Technology Group
University of Hawaii Marine Center
Loading...