<div dir="ltr">Hi,<div><br></div><div>I suspect Notepad reads the entire file and then closes the file, let's you view/edit, and then. when you write it also closes after the write.  By the time KST sees the change, Notepad does not have a file handle open to the file.</div><div><br></div><div>Having said that, I use KST on windows - writing both .txt files and dirfiles from a custom (Java) application.  The application keeps the dirfile file handles open continuously and that kst plugin has no problem reading updates.  Perhaps the KST .txt reader is a little more finicky.  Our .txt writer opens, writes, and closes the .txt file for each (1 Hz) update so again, KST is probably the only file user when it retrieves updates to the .txt file.  I suggest you change your .txt writer to open/write/close for each update.</div><div><br></div><div>Steve</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 16, 2018 at 9:06 AM Barth Netterfield <<a href="mailto:barth.netterfield@gmail.com">barth.netterfield@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Hmmm...</p>
    <p>This sounds like  Windows race condition.</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.</p>
    <p>Does anyone else on the list have any suggestions?</p>
    <p>cbn<br>
    </p>
    <br>
    <div class="m_-7993146734126567669moz-cite-prefix">On 2018-07-15 11:02 PM, JAMES WATT
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hello Kst experts,
        <div>Kst is a such a wonderful tool for plotting live streaming
          data.</div>
        <div>It just works.</div>
        <div>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.</div>
        <div>However, I have another application that generates to
          streaming data and export it to a .txt file in real time.</div>
        <div>Once I open Kst and set this file as the data source, the
          application prompts 
          <span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:small;text-align:left;background-color:rgb(236,237,243);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">'Could
            not write to file.(Cannot open file...The process cannot
            access the file because it is being used by another
            process.)'</span>
        </div>
        <div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:small;text-align:left;background-color:rgb(236,237,243);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;text-align:start;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">My
              question is why is Kst compatible with the plain
              Notepade.exe but not to the other application?</span></span></div>
        <div><span style="text-align:left;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="background-color:rgb(255,255,255)">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></span></div>
        <div><span style="text-align:left;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="background-color:rgb(255,255,255)">Thank you for
              any comments.</span></span></div>
      </div>
    </blockquote>
    <br>
    <pre class="m_-7993146734126567669moz-signature" cols="72">-- 
C. Barth Netterfield
416-845-0946</pre>
  </div>

</blockquote></div>