<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Dan,<br>
    <br>
    It sounds like each channel has its own sample rate (or is
    asynchronous).<br>
    <br>
    In cases like this I use the channel with the highest sample rate
    for the time stamp. Then for all other channels I use the old value
    until it is updated.<br>
    <br>
    For example<br>
    <br>
    timestamp, data_x, data_y, data_z<br>
    0, 10, 10, 10<br>
    1, 20, 10, 10<br>
    2, 30, 20, 10<br>
    3, 40, 20, 10<br>
    4, 50, 30, 10<br>
    5, 60, 30, 10<br>
    6, 70, 40, 10<br>
    7, 80, 40, 10<br>
    8, 90, 50, 10<br>
    9, 100, 50, 20<br>
    <br>
    In this case data_x updates at the fast rate, data_y updates at half
    of data_x and data_y updates at 1/10 of data_x.<br>
    <br>
    Would this work in your case?<br>
    <br>
    Regards, Ben<br>
    <br>
    <div class="moz-cite-prefix">On 4/02/2016 10:36 AM, Daniel Miller
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACcGSZ7JuCpsBQDNcqG-JzvhgW0nxtpqBaZ63BOMwRa+v4cQQA@mail.gmail.com"
      type="cite">
      <div dir="ltr">hmmm... well, I prefer lines to points in kst2; the
        plots with points are sort of hard to utilize, but I'll take a
        look at it and see what it looks like.
        <div><br>
        </div>
        <div>Alternately, is there some way to input three data files,
          but have them plotted on one plot??  I haven't really seen
          that in the manual either...</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Feb 3, 2016 at 3:33 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">As you have sort of figured out, kst's data
              source model will want you to have 3 different ascii files
              in this case.
              <div><br>
              </div>
              <div>But, if you just want to plot points, and not lines,
                you can use NaN as your bad data marker.</div>
              <div class="gmail_extra"><br>
                <div class="gmail_quote">
                  <div>
                    <div class="h5">On Wed, Feb 3, 2016 at 6:30 PM,
                      Daniel Miller <span dir="ltr"><<a
                          moz-do-not-send="true"
                          href="mailto:dmiller@vitalconnect.com"
                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:dmiller@vitalconnect.com">dmiller@vitalconnect.com</a></a>></span>
                      wrote:<br>
                    </div>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div>
                      <div class="h5">
                        <div dir="ltr">I have kst2 working with single
                          plot stream... that works very nicely.  At
                          this point, I'm using space as separator
                          between fields.
                          <div><br>
                          </div>
                          <div>However, we have a couple of data streams
                            which contain multiple data (x, y, z); in
                            this situation, what our data would look
                            like is ( timestamp, data), but the data
                            would be one of { data_x, data_y, data_z }. 
                            In other words, the data stream that I
                            receive from the hardware, delivers data_x,
                            data_y, data_z in separate messages, with
                            different timestamps.</div>
                          <div><br>
                          </div>
                          <div>I want kst2 to read this ascii data file
                            and plot 3 separate graphs on one plot.  </div>
                          <div>I'm a little confused about how to do
                            this, though; </div>
                          <div><br>
                          </div>
                          <div>for example, say I have a line with data
                            for data_z; this will look something like:</div>
                          <div>timestamp data_z </div>
                          <div>however, I want one file to contain data
                            for all three streams, so I'm guessing I
                            need to have empty fields for the
                            not-relevant data; maybe something like:</div>
                          <div>timestamp unused_x unused_y data_z</div>
                          <div>timestamp unused_x data_y unused_z</div>
                          <div>etc...</div>
                          <div><br>
                          </div>
                          <div>So first off, I probably have to use a
                            different separator rather than space for
                            separator; but even with comma, I still have
                            a problem; for example:</div>
                          <div><br>
                          </div>
                          <div>timestamp, 0, 0, data_z</div>
                          <div>timestamp, 0, data_y, 0</div>
                          <div><br>
                          </div>
                          <div>Except that in some cases, 0 is valid
                            data; I *think* I need some way to represent
                            "invalid data" in the unused fields.</div>
                          <div><br>
                          </div>
                          <div>Is this understandable??  How do I handle
                            this??</div>
                          <div>Dan Miller</div>
                        </div>
                        <br>
                      </div>
                    </div>
                    _______________________________________________<br>
                    Kst mailing list<br>
                    <a moz-do-not-send="true" href="mailto:Kst@kde.org"
                      target="_blank">Kst@kde.org</a><br>
                    <a moz-do-not-send="true"
                      href="https://mail.kde.org/mailman/listinfo/kst"
                      rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
                    <br>
                  </blockquote>
                </div>
                <span class="HOEnZb"><font color="#888888"><br>
                    <br clear="all">
                    <div><br>
                    </div>
                    -- <br>
                    <div><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:416-845-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>
            </div>
            <br>
            _______________________________________________<br>
            Kst mailing list<br>
            <a moz-do-not-send="true" href="mailto:Kst@kde.org">Kst@kde.org</a><br>
            <a moz-do-not-send="true"
              href="https://mail.kde.org/mailman/listinfo/kst"
              rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kst mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kst@kde.org">Kst@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/kst">https://mail.kde.org/mailman/listinfo/kst</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>