<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Trevor,</p>
<p>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.</p>
<p>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. <br>
</p>
<p>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.</p>
<p>Regards, Ben<br>
</p>
<br>
<div class="moz-cite-prefix">On 24/03/2017 10:36 AM, Trevor Young
wrote:<br>
</div>
<blockquote
cite="mid:CA+qPsycKBtTJJUsPDsXjDYfwms58m+t=ZOJ2MQLMsWVDaTr+5Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-family:monospace,monospace">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.</div>
<div class="gmail_default"
style="font-family:monospace,monospace"><br>
</div>
<div class="gmail_default"
style="font-family:monospace,monospace">Your test loop seems
to work fine.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Mar 23, 2017 at 12:53 PM, Barth
Netterfield <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:netterfield@astro.utoronto.ca"
target="_blank">netterfield@astro.utoronto.ca</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I just tried the following test:
<div>in one terminal:</div>
<div><br>
</div>
<div><span style="font-family:monospace"><span
style="color:rgb(0,0,0)">while 1;
</span><br>
do date +%s >> tmp.dat && sleep 1
<br>
done<br>
<br>
</span></div>
<div><font face="monospace">In another terminal</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">kst2 tmp.dat -y 1</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">The resulting plot updates
every second, as expected. Can you try this test?</font></div>
<div><font face="monospace"><br>
</font></div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Mar 23, 2017 at 6:46
PM, Barth Netterfield <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:netterfield@astro.utoronto.ca"
target="_blank">netterfield@astro.utoronto.ca</a><wbr>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hmmm... these are ascii files?
<div><br>
</div>
<div>It sounds like the update type isn't
getting set right.</div>
<div><br>
</div>
<div>If you open one of the vectors in the
vector edit dialog, what does it say the
update type is?</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra">
<div>
<div class="m_-4940887718423799806h5"><br>
<div class="gmail_quote">On Thu, Mar 23,
2017 at 6:35 PM, Trevor Young <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:tnyoung@hawaii.edu"
target="_blank">tnyoung@hawaii.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_default"
style="font-family:monospace,monospace">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?</div>
</div>
<div
class="m_-4940887718423799806m_-6205814747434497810HOEnZb">
<div
class="m_-4940887718423799806m_-6205814747434497810h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu,
Mar 23, 2017 at 10:54 AM, Trevor
Young <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:tnyoung@hawaii.edu"
target="_blank">tnyoung@hawaii.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_default"
style="font-family:monospace,monospace">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?</div>
<div class="gmail_default"
style="font-family:monospace,monospace"><br>
</div>
<div class="gmail_default"
style="font-family:monospace,monospace">Thanks</div>
<span
class="m_-4940887718423799806m_-6205814747434497810m_3016746580717418740HOEnZb"><font
color="#888888">
<div
class="gmail_default"
style="font-family:monospace,monospace"><br>
</div>
<div
class="gmail_default"
style="font-family:monospace,monospace">Trevor</div>
</font></span></div>
<div class="gmail_extra">
<div>
<div
class="m_-4940887718423799806m_-6205814747434497810m_3016746580717418740h5"><br>
<div class="gmail_quote">On
Thu, Mar 23, 2017 at
3:06 AM, C Barth
Netterfield <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:netterfield@astro.utoronto.ca" target="_blank">netterfield@astro.utoronto.ca</a><wbr>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">Hi,
Trevor,<br>
<br>
Unfortunately, the
version of kst in
debian is extremely
old, and full of<br>
known bugs, and
there is no
maintainer for that
debian package :-(<br>
<br>
We do have an ubuntu
ppa we keep up to
date (but you would
have to switch to a<br>
recent ubuntu)<br>
<br>
Or you can build
from source. Let me
know if you would
like some help with<br>
that.<br>
<span
class="m_-4940887718423799806m_-6205814747434497810m_3016746580717418740m_-1080102696195413775HOEnZb"><font
color="#888888"><br>
cbn<br>
</font></span>
<div
class="m_-4940887718423799806m_-6205814747434497810m_3016746580717418740m_-1080102696195413775HOEnZb">
<div
class="m_-4940887718423799806m_-6205814747434497810m_3016746580717418740m_-1080102696195413775h5"><br>
On Wednesday,
March 22, 2017
8:38:04 PM EDT
Trevor Young
wrote:<br>
> I have a
script logging
data to file and
use kde to graph
it but I often<br>
> encounter
an issue with
the graph not
updating itself
on startup. Kst
will<br>
> load an
initial set of
data, and then a
second or so
later, do a
single<br>
> second
update. The
graph won't
start live
updating until I
go into the<br>
> data
manager and
double click on
any of the
entries there,
then it starts<br>
> to auto
update. I don't
need to make any
changes, just
have to double
click<br>
> on
something and
bring up the
dialog box. Has
anyone else
encountered this<br>
> or have an
idea why this
may be
happening?<br>
><br>
> I'm running
an up to date
copy of debian
stable.<br>
><br>
> Thanks.<br>
<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<span>-- <br>
<div
class="m_-4940887718423799806m_-6205814747434497810m_3016746580717418740m_-1080102696195413775gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>Trevor Young<br>
Senior Marine
Technician<br>
Ocean Technology
Group<br>
University of Hawaii
Marine Center<br>
<br>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div
class="m_-4940887718423799806m_-6205814747434497810m_3016746580717418740gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>Trevor Young<br>
Senior Marine Technician<br>
Ocean Technology Group<br>
University of Hawaii Marine
Center<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<span class="m_-4940887718423799806HOEnZb"><font
color="#888888">-- <br>
<div
class="m_-4940887718423799806m_-6205814747434497810gmail_signature"
data-smartmail="gmail_signature"><span
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)">C.
Barth Netterfield<br>
University of Toronto<br>
<a moz-do-not-send="true"
href="tel:%28416%29%20845-0946"
value="+14168450946" target="_blank">416-845-0946</a></span>
<div><span
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)"><br>
</span></div>
</div>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-4940887718423799806gmail_signature"
data-smartmail="gmail_signature"><span
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)">C.
Barth Netterfield<br>
University of Toronto<br>
<a moz-do-not-send="true"
href="tel:%28416%29%20845-0946"
value="+14168450946" target="_blank">416-845-0946</a></span>
<div><span
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)"><br>
</span></div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>Trevor Young<br>
Senior Marine Technician<br>
Ocean Technology Group<br>
University of Hawaii Marine Center<br>
<br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>