<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;
        color:black;}
span.E-MailFormatvorlage21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Barth, Hi James,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I’m using Kst (Windows Version Kst-2.0.8 Revision 29f1416) to plot live streaming data.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">A Windows data logger program reads data from PLC’s (~ 200-300 data points = columns) and writes a new dataset to a CSV
 file each 1000ms –even 100ms will work. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">At the same time Kst Plot reads from this file without any problems.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I had the same problem when the CSV file writer from the datalogger program was not closed after each dataset. I guess
 this is your problem!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">See attached screenshot of 30 days data plot with Kst.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">A new CSV file is generated every day, so even a period of several days can be displayed!  <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">So you are right - Kst is a wonderful tool.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Joerg<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<P><FONT face="Arial" size="2"><IMG height="102" width="150" src="cid:CF66E0CAC98C4277@B2258EDBD07E7348" alt="Herrenknecht Tunnelling Systems"></FONT></P>
<P><FONT face="Arial" size="2">Registergericht / Register Court: Freiburg HRB 390485<BR>Vorsitzender des Aufsichtsrates / Chairman of the Supervisory Board: <BR>Hans-Jörg Vetter<BR>Vorstand / Board of Management: <BR>Dr.-Ing. E. h. Martin Herrenknecht, Vorsitzender / Chairman<BR>Dipl.-Wirtsch.-Ing. Michael Sprang, CFO und Stellvertreter / Vice Chairman<BR>Dipl.-Ing. (FH) Günter Richter<BR>Dipl.-Ing. (FH) Ulrich Schaffhauser</FONT></P>
<P><FONT face="Arial" size="2">Weitere Informationen zum Datenschutz finden Sie <A href="https://www.herrenknecht.com/de/funktionen/datenschutz.html">hier</A></FONT></P>
<P></P><div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext"> Kst <kst-bounces@kde.org>
<b>Im Auftrag von </b>Barth Netterfield<br>
<b>Gesendet:</b> Montag, 16. Juli 2018 15:07<br>
<b>An:</b> kst@kde.org; JAMES WATT <jmsnwtt@gmail.com><br>
<b>Betreff:</b> Re: About live streaming data plot<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hmmm...<o:p></o:p></p>
<p>This sounds like  Windows race condition.<o:p></o:p></p>
<p>Alas, I only use Linux, so have no idea how to fix this.  :-(  I do know that people have successfully used kst real time in windows though.<o:p></o:p></p>
<p>Does anyone else on the list have any suggestions?<o:p></o:p></p>
<p>cbn<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 2018-07-15 11:02 PM, JAMES WATT wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hello Kst experts, <o:p></o:p></p>
<div>
<p class="MsoNormal">Kst is a such a wonderful tool for plotting live streaming data.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">It just works.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I can validate it by opening a .txt data file by Notepad and change it on the fly and see the change is reflected within Kst.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">However, I have another application that generates to streaming data and export it to a .txt file in real time.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Once I open Kst and set this file as the data source, the application prompts 
<span style="font-family:"Verdana",sans-serif;background:#ECEDF3">'Could not write to file.(Cannot open file...The process cannot access the file because it is being used by another process.)'</span>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:#222222;background:white">My question is why is Kst compatible with the plain Notepade.exe but not to the other application?</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="background:white">If Kst only reads to a .txt file, can I set it to a more "recessive" mode so that the other application won't deem it as a writing race condition risk.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="background:white">Thank you for any comments.</span><o:p></o:p></p>
</div>
</div>
</blockquote>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>C. Barth Netterfield<o:p></o:p></pre>
<pre>416-845-0946<o:p></o:p></pre>
</div>
</body>
</html>